Unable to install PyZMP for Python - Dependencies

I am having trouble installing the PyZMP dependency for iPython. I tried a few things, such as using pip / brew, but ended up installing the package manually using this answer .

Now pip list packages produces the following

 pyzmq (14.2.0-dev) pyzmq-static (2.2) 

(I also tried using pyzmq-static).

Also, my python eggs are clearly present in the right place:

 ls /usr/local/lib/python2.7/site-packages/ | grep "pyzmq" pyzmq-14.2.0_dev-py2.7.egg-info pyzmq_static-2.2-py2.7.egg-info 

Further

 which python /usr/local/bin/python echo $PYTHONPATH /usr/local/lib/python: 

However, when I try to import

 Python 2.7.6 (default, Mar 20 2014, 17:55:13) In [1]: import pyzmq --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-2faa556e5dc0> in <module>() ----> 1 import pyzmq ImportError: No module named pyzmq 

Any troubleshooting help would be greatly appreciated!

Update: I can list the zmq modules in python, but not the pyzmq modules:

 >>help('modules zmq') Here is a list of matching modules. Enter any module name to get more help. buildutils - utilities for building pyzmq. buildutils.constants - script for generating files that involve repetitive updates for zmq constants. buildutils.detect - Detect zmq version zmq - Python bindings for 0MQ. ... zmqversion - A simply script to scrape zmq.h for the zeromq version. IPython.consoleapp - A minimal application base mixin for all ZMQ based IPython frontends. IPython.html.base.zmqhandlers - Tornado handlers for WebSocket <-> ZMQ sockets. ... IPython.utils.zmqrelated - Utilities for checking zmq versions. 
+1
source share
2 answers

You should use:

 import zmq 

instead

 import pyzmq 

check out the official examples at https://github.com/zeromq/pyzmq/blob/master/examples/

+2
source

I also tried installing IPython (Jupyter), especially with the pyzmq dependency. In the end, I found a method that worked for me (on Ubuntu) with much less problems:

 $ sudo apt-get install libtool pkg-config build-essential autoconf automake python-dev $ sudo apt-get build-dep matplotlib $ sudo pip install matplotlib $ sudo pip install "ipython[all]" 
+1
source

Source: https://habr.com/ru/post/1232745/


All Articles