sudo easy_install pyzmq
Searching for pyzmq
Best match: pyzmq 13.0.2
Processing pyzmq-13.0.2-py2.6-macosx-10.8-intel.egg
pyzmq 13.0.2 is already the active version in easy-install.pth
Using /Library/Python/2.6/site-packages/pyzmq-13.0.2-py2.6-macosx-10.8-intel.egg
Processing dependencies for pyzmq
Finished processing dependencies for pyzmq
现在我必须像zeromq这样运行我的python程序
python2.6 program.py
我的默认python是python 2.7。 如何使用python 2.7安装pyzmq模块?
答案 0 :(得分:0)
可能是因为您路径上的easy_install
是针对Python 2.6的。
检查
的输出which easy_install
head -n 1 $(which easy_install)
你可能会得到答案。您可能需要为Python 2.7安装或重新安装setuptools / distribute,或者只是确保Python 2.7 easy_install优先于PATH上的2.6。你可以尝试
which -a easy_install
查看PATH上多个easy_installs的位置。