我使用的是 Macbook,过去运行的 Jupyter 服务器运行良好。将近 3 周我没有使用它,现在遇到了问题,因为它没有运行。
$ jupyter notebook
Traceback (most recent call last):
File "/usr/local/bin/jupyter-notebook", line 6, in <module>
from notebook.notebookapp import main
File "/usr/local/lib/python3.7/site-packages/notebook/notebookapp.py", line 62, in <module>
from tornado import httpserver
File "/usr/local/lib/python3.7/site-packages/tornado/httpserver.py", line 29, in <module>
import ssl
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: dlopen(/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_ssl.cpython-37m-darwin.so, 2): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_ssl.cpython-37m-darwin.so
Reason: image not found
卸载并重新安装 jupyter 没有解决问题。
MacOS Catalina
Version 10.15.2 (19C57)
知道如何解决这个问题吗?
最佳答案
看起来你的 brew 安装的 openssl 有问题,试试这个:https://github.com/kelaberetiv/TagUI/issues/86
话虽如此,我过去遇到过自制软件更新我的 python 版本并破坏所有内容的问题,因此也可能值得调查一下
关于python - Jupyter 服务器无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59664471/