运行 Jupyter Notebook 时出现以下错误:
(base) C:\Users\ramne>jupyter notebook
[I 01:19:00.648 NotebookApp] The port 8888 is already in use, trying another port.
当我执行 netstat -ano | 时找到 Str "8888",我得到以下信息:
C:\Users\ramne>netstat -ano | findStr "8888"
TCP 127.0.0.1:8888 0.0.0.0:0 LISTENING 16024
TCP [::1]:8888 [::]:0 LISTENING 16024
我不知道端口 8888 的默认连接是什么或者它的行为应该是什么样的。如何修复此错误以便我可以打开 Jupyter Notebook?
最佳答案
端口 8888 几乎完全由 Jupyter 使用,它正在使用的事实最重要的是表明您有另一个 Jupyter session 已经在运行。我 99% 确定你可以杀死正在使用它的任务,或者你可以运行
jupyter notebook list
查看当前笔记本。正如另一个答案中提到的,您可以运行
jupyter notebook --port 8889
改为在不同的端口上运行(将 8889 替换为您想要的任何其他数字)。
关于python - 错误 "Unable to open Jupyter Notebook: Port 8888 is already in use",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51739199/