iPython/jupyter 笔记本无法启动 "image not found"

iPython/jupyter notebook fails to start "image not found"

尝试启动 iPython/jupyter 笔记本崩溃并出现以下错误:

ImportError: dlopen(/Library/Python/2.7/site-packages/zmq/backend/cython/constants.so, 2): Library not loaded: /opt/local/lib/libzmq.3.dylib 
Referenced from: /Library/Python/2.7/site-packages/zmq/backend/cython/constants.so 
Reason: image not found

在此处找到解决方案:

https://github.com/zeromq/pyzmq/issues/493

pyzmq 安装出现问题,但通过 macports 或 pip 卸载然后重新安装并没有消除问题文件。

/Library/Python/2.7/site-packages/ 中删除 zmq 目录,然后使用 pip 重新安装修复了这个问题。