You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安装jupyterthemes后执行jt -l提示命令无法识别的问题求助

解决jt命令未被识别的问题
  • 检查Python脚本路径是否在系统环境变量中

    • 执行pip show jupyterthemes,查看输出里的Location字段,找到jupyterthemes安装目录下的Scripts文件夹路径(Windows下通常是C:\Users\[你的用户名]\AppData\Local\Programs\Python\PythonXX\Scripts或用户目录下的Python缓存路径)
    • 将该路径添加到系统PATH环境变量中(Windows:右键「此电脑」→属性→高级系统设置→环境变量→系统变量→PATH→编辑→新建,粘贴路径后依次确定保存)
    • 重启命令提示符或终端,再次执行jt -l
  • 直接用Python模块方式调用命令

    • 无需修改环境变量,直接执行python -m jupyterthemes -l替代jt -l,后续主题操作也用此格式,比如设置主题:python -m jupyterthemes -t monokai
  • 重新安装jupyterthemes(若上述方法无效)

    • 先卸载:pip uninstall jupyterthemes -y
    • 再重新安装:pip install jupyterthemes
    • 安装完成后重复前两种方法尝试

内容的提问来源于stack exchange,提问作者Isuru

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.20 01:45:38