在終端輸入jupyter notebook之后無法正常啟動jupyter, 報錯
E:\python_note\test1>jupyter notebook Fatal error in launcher: Unable to create process using '"h:\python\python.exe" "G:\PYTHON\Scripts\jupyter.exe" notebook'
從提示可以看出, jupyter的啟動文件的全路徑是 G:\PYTHON\Scripts\jupyter.exe ,我們去找這個jupyter啟動文件是否在這個路徑中, 發現是在的. 然后jupyter的運行是依靠python解釋器的, 通俗講jupyter就是一個瀏覽器版的pycharm, 而這里我們看到它找的python解釋器的路徑是 h:\python\python.exe , 這個時候我才記起來之前重裝過Windows系統, 導致盤符有一些變化, 好像是之前的 h 盤變成了現在的 g 盤, 現在我的電腦里沒有 h 盤了,
所以, 這里python解釋器的路徑很明顯是不對的
原因就是 jupyter.exe 文件中指定的 h:\python\python.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\test1>jupyter notebook Fatal error in launcher: Unable to create process using '"h:\python\python.exe" "G:\PYTHON\Scripts\jupyter-notebook.EXE" '
說明不止一個文件中的python解釋器指向錯位置了
繼續使用Hedit打開 jupyter-notebook.EXE 文件, 將 h:\ 替換成 g:\
最后成功運行jupyter
轉載自: https://blog.csdn.net/u013700358/article/details/83316753