[英]Jupyter Notebook freezes at startup via command line on Windows 10
更新我的 python 版本后,我似乎無法通過命令行啟動 jupyter notebook。 我剛剛安裝了 3.7.7, pip
安裝了jupyter
,但是當我 go 通過命令行使用jupyter notebook
啟動 jupyter 時,它掛起/凍結。 我也不能Ctrl-C
控制台,它已完全鎖定。 不到 2 小時前它還在工作!
我試過用--debug
運行它,但輸出后它仍然掛起:
[D 19:37:42.193 NotebookApp] Searching ['C:\\WINDOWS\\system32', 'C:\\Users\\[USERNAME]\\.jupyter', 'c:\\program files\\python37\\etc\\jupyter', 'C:\\ProgramData\\jupyter'] for config files
[D 19:37:42.194 NotebookApp] Looking for jupyter_config in C:\ProgramData\jupyter
[D 19:37:42.194 NotebookApp] Looking for jupyter_config in c:\program files\python37\etc\jupyter
[D 19:37:42.194 NotebookApp] Looking for jupyter_config in C:\Users\[USERNAME]\.jupyter
[D 19:37:42.194 NotebookApp] Looking for jupyter_config in C:\WINDOWS\system32
[D 19:37:42.195 NotebookApp] Looking for jupyter_notebook_config in C:\ProgramData\jupyter
[D 19:37:42.195 NotebookApp] Looking for jupyter_notebook_config in c:\program files\python37\etc\jupyter
[D 19:37:42.195 NotebookApp] Looking for jupyter_notebook_config in C:\Users\[USERNAME]\.jupyter
[D 19:37:42.196 NotebookApp] Loaded config file: C:\Users\[USERNAME]\.jupyter\jupyter_notebook_config.py
[D 19:37:42.196 NotebookApp] Looking for jupyter_notebook_config in C:\WINDOWS\system32
[D 19:37:42.197 NotebookApp] Ignoring min_open_files_limit because the limit cannot be adjusted (for example, on Windows)
[D 19:37:42.200 NotebookApp] Paths used for configuration of jupyter_notebook_config:
C:\ProgramData\jupyter\jupyter_notebook_config.json
[D 19:37:42.201 NotebookApp] Paths used for configuration of jupyter_notebook_config:
c:\program files\python37\etc\jupyter\jupyter_notebook_config.json
[D 19:37:42.201 NotebookApp] Paths used for configuration of jupyter_notebook_config:
C:\Users\Jhuessy\.jupyter\jupyter_notebook_config.json
這些文件不在它們各自的目錄中,似乎我需要找到它們或以某種方式生成它們。 任何幫助將不勝感激,謝謝!
Python 版本: Python 3.7.7
jupyter core : 4.6.3
jupyter-notebook : 6.0.3
qtconsole : 4.7.3
ipython : 7.14.0
ipykernel : 5.2.1
jupyter client : 6.1.3
jupyter lab : not installed
nbconvert : 5.6.1
ipywidgets : 7.5.1
nbformat : 5.0.6
traitlets : 4.3.3
對於其他可能偶然發現並不知所措的人,我修復了它並且大約 80% 知道我是如何做到的。
首先,嘗試以管理員身份打開命令提示符並嘗試ping 127.0.0.1
以查看是否可以 ping 本地地址。 當我這樣做時,我會因此而得到General Failure
。
我認為問題之一可能是 jupyter 無法啟動,因為它試圖在 127.0.0.1 上托管並被拒絕,因此在查找配置后掛起。 配置實際上與該問題無關/似乎,因為我檢查了它們在可以運行 jupyter 的機器上的位置,並且它們也沒有生成配置。
我最終做了以下事情,並且在某些時候組合起作用了,我能夠再次加載 jupyter:
Program Files
、 Program Files (x86)
、 AppData
和ProgramData
並刪除它們C:\Users\USERNAME\AppData\Local\pip
並刪除cache
文件夾SOFTWARE/Python
下的 python 特定注冊表項ipconfig /all
ipconfig /flushdns
ipconfig /release
ipconfig /renew
pip install jupyter
jupyter --version
jupyter notebook
抱歉,這個答案沒有應有的明確或全面。 我對如何保留或保留 127.0.0.1 知之甚少,否則可能更容易排除故障。
如果有人遇到這個並且確切地知道是什么導致了這個混亂,我很想知道!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.