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

Windows系统下从CMD/PowerShell启动Jupyter Notebook报错求助

解决Jupyter Notebook启动时指向旧Python路径的错误
  • 先确认当前Python 3.13的实际路径
    打开CMD/PowerShell,执行命令:

    where py
    

    或者

    where python
    

    记下输出的Python 3.13完整路径(例如c:\users\NAME\appdata\local\programs\python\python313\python.exe)。

  • 强制重新安装pip,修复脚本关联
    执行命令:

    py -m pip install --upgrade pip --force-reinstall
    

    这一步会让pip的所有脚本重新关联到当前使用的Python 3.13版本。

  • 强制重新安装Jupyter
    执行命令:

    py -m pip install jupyter --force-reinstall
    

    重新安装后,Jupyter的启动脚本会自动指向正确的Python 3.13路径。

  • 清理PATH中的旧Python路径

    1. 右键「此电脑」→「属性」→「高级系统设置」→「环境变量」
    2. 在「用户变量」或「系统变量」的PATH条目里,查找包含Python39的路径,选中后删除
    3. 重启CMD/PowerShell后再尝试启动Jupyter
  • 临时应急启动方法
    如果上面的步骤暂时没生效,可以直接用Python 3.13的完整路径启动Jupyter,命令格式如下:

    "你的Python313完整路径" -m jupyter notebook
    

    示例:

    "c:\users\NAME\appdata\local\programs\python\python313\python.exe" -m jupyter notebook
    

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.12 10:52:02