【问题标题】:"Fatal error in launcher: unable to create process with c:\pythonXX\python.exe" when launching jupyter after python re-install“启动器中的致命错误:无法使用 c:\pythonXX\python.exe 创建进程”在重新安装 python 后启动 jupyter 时
【发布时间】:2021-02-20 09:47:02
【问题描述】:

我在 Win10 机器上错误地安装了两次 python(3.8 通过 Windows Store 和 3.9 通过 python 安装程序),在删除它们并重新安装 3.9 后,Python 工作正常,但 jupyter(安装了 pip)一直返回致命错误:启动器中的致命错误:无法使用“c:\pythonXX\python.exe”“C:\Users\xx\AppData\Roaming\Python\PythonXX\Scripts\jupyter.exe”创建进程:Le fichier spÚcifiÚ est麻烦的。 (在法语中找不到指定的文件)

我尝试在 kernel.json 中指定 python.exe 的路径,但没有成功。

文件夹 c:\pythonXX\ 不存在,但我检查了 PATH 并没有提到这个文件夹。

有人知道如何纠正它吗?或者我应该再次彻底卸载 Python 吗?

提前致谢

【问题讨论】:

    标签: python jupyter fatal-error


    【解决方案1】:

    在对 jupyter/notebook github 问题进行了一些搜索后,我发现了一个更正/解决方法:在我的 PATH 环境变量中,我有指向 PythonXX 和 PythonXX/Scripts 文件夹的重复文件夹。 我保留了与“python 所在位置”相对应的集合,并强制重新安装 jupyter。

    pip install jupyter --force-reinstall
    

    然后我能够启动 jupyter 而不会出现错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-01-12
      • 2018-01-26
      • 2021-12-09
      • 2014-08-28
      • 2016-09-10
      • 2023-04-06
      相关资源
      最近更新 更多