为什么我无法在 ubuntu 14.04 LTS 上导入 pyzmq?
Why I can't import pyzmq on ubuntu 14.04 LTS?
我已经安装了 zmq 并且 pyzmq.But 我无法导入 pyzmq。
>>> Successfully installed pyzmq
Cleaning up...
hepeng@hp:~$ python
enter code here
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyzmq
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pyzmq
但是我可以导入zmq
>>> import zmq
>>>
为什么?谢谢。
我已经安装了 zmq 并且 pyzmq.But 我无法导入 pyzmq。
>>> Successfully installed pyzmq
Cleaning up...
hepeng@hp:~$ python
enter code here
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyzmq
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pyzmq
但是我可以导入zmq
>>> import zmq
>>>
为什么?谢谢。