问题描述
我在终端中运行jupyter时遇到问题.
I got a problem with running jupyter in the terminal.
终端运行后会显示什么
maxim@MacBook-Pro-Maxim ~ jupyter notebook
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/jupyter-notebook", line 5, in <module>
from notebook.notebookapp import main
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/notebook/notebookapp.py", line 49, in <module>
from zmq.eventloop import ioloop
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/zmq/__init__.py", line 62, in <module>
from zmq import backend
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/zmq/backend/__init__.py", line 32, in <module>
raise original_error from None
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/zmq/backend/__init__.py", line 27, in <module>
_ns = select_backend(first)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/zmq/backend/select.py", line 32, in select_backend
mod = import_module(name)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/zmq/backend/cython/__init__.py", line 6, in <module>
from . import (
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/zmq/backend/cython/constants.cpython-39-darwin.so, 2): Symbol not found: ____chkstk_darwin
Referenced from: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/zmq/backend/cython/../../.dylibs/libsodium.23.dylib
Expected in: /usr/lib/libSystem.B.dylib
in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/zmq/backend/cython/../../.dylibs/libsodium.23.dylib
我试图使用Anaconda并遇到相同的问题
I was trying to use Anaconda and got the same issue
对我来说,路径似乎有问题...
For me, it seems to be something wrong with path...
请帮助我解决该问题或提供操作提示
Please help me to resolve it or give a hint of what to do
推荐答案
我看到了完全相同的问题-似乎zmq软件包中有一个/cython/,其中包含不兼容的引用.是否不使用站点软件包中的cython?我已经尝试过重新安装cython,pyzmq和所有jupyter模块,但还没有任何乐趣.
I'm seeing the exact same issue - seems the zmq package has a /cython/ in it with incompatible references. Is it not using cython from the site-packages? I've tried reinstalling cython, pyzmq, and all the jupyter modules with no joy yet.
编辑-我将pyzmq降级到20.0.0,并且工作正常. pip install pyzmq == 20.0.0
EDIT - I downgraded pyzmq to 20.0.0 and it worked fine.pip install pyzmq==20.0.0
我认为问题出在pyzmq的cython包装中-应该作为对他们的bug提出.
I believe the issue is in pyzmq's cython packaging - and should be raised as a bug to them.
这篇关于无法在所有地方(终端,anaconda分发服务器)运行jupyter Mac OS 10.12.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!