启动jupyter报错 Fatal error in launcher: Unable to create process using '"h:pythonpython.exe" "G:PYTHONScriptsjupyter.exe" notebook'

在终端输入jupyter notebook之后无法正常启动jupyter, 报错

E:python_note	est1>jupyter notebook
Fatal error in launcher: Unable to create process using '"h:pythonpython.exe"  "G:PYTHONScriptsjupyter.exe" notebook'

  从提示可以看出, jupyter的启动文件的全路径是 G:PYTHONScriptsjupyter.exe ,我们去找这个jupyter启动文件是否在这个路径中, 发现是在的. 然后jupyter的运行是依靠python解释器的, 通俗讲jupyter就是一个浏览器版的pycharm, 而这里我们看到它找的python解释器的路径是 h:pythonpython.exe , 这个时候我才记起来之前重装过Windows系统, 导致盘符有一些变化, 好像是之前的 h 盘变成了现在的 g 盘, 现在我的电脑里没有 h 盘了,

  所以, 这里python解释器的路径很明显是不对的

  原因就是 jupyter.exe 文件中指定的 h:pythonpython.exe 解释器指定位置是错误的, 我也试过pip uninstall jupyter然后在pip install jupyter重装, 发现没有作用, 依旧运行不了jupyter

  这里千万不要头脑一热把 jupyter.exe 给删掉

  解决办法是先下载一个 exe 文件编辑器, 右键exe 文件没法修改文件, 并且是十六进制文本咋也看不懂

  附上exe文件编辑器 Hedit 的下载链接:  https://pan.baidu.com/s/1kaovUD6BtYRzd7PavEq4gA    提取码:mm84

  打开Hedit 点击 文件 ==> 打开 ==> 找到上述 jupyter.exe文件, 然后编辑 ==> 查找, 我这里搜索 h:  可以看到 jupyter.exe文件中的确把路径指向了 h 盘的python解释器

最后把 h: 替换成 g: 就OK了

再次运行发现还是报错

E:python_note	est1>jupyter notebook
Fatal error in launcher: Unable to create process using '"h:pythonpython.exe" "G:PYTHONScriptsjupyter-notebook.EXE" '

说明不止一个文件中的python解释器指向错位置了

继续使用Hedit打开 jupyter-notebook.EXE 文件, 将 h: 替换成 g:

最后成功运行jupyter

转载自:  https://blog.csdn.net/u013700358/article/details/83316753

原文地址:https://www.cnblogs.com/banbosuiyue/p/12872780.html