gpt4 book ai didi

python - 无法在任何地方运行 jupyter(终端、anaconda 分发器)Mac os 10.12.6

转载 作者:行者123 更新时间:2023-12-02 18:59:23 26 4
gpt4 key购买 nike

我在终端中运行 jupyter 时遇到问题。

运行后终端显示什么

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 并遇到了同样的问题

对我来说,路径似乎有问题......

请帮我解决这个问题或提示该怎么做

最佳答案

我看到了完全相同的问题 - 似乎 zmq 包中有一个/cython/,其中包含不兼容的引用。它不是使用站点包中的 cython 吗?我尝试重新安装 cython、pyzmq 和所有 jupyter 模块,但仍然没有任何乐趣。

编辑 - 我将 pyzmq 降级到 20.0.0 并且工作正常。pip install pyzmq==20.0.0

我相信问题出在 pyzmq 的 cython 包装中 - 并且应该作为错误向他们提出。

关于python - 无法在任何地方运行 jupyter(终端、anaconda 分发器)Mac os 10.12.6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65774567/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com