Please install Cython or download a release package of pyzmq.Īnd this file structure: $ ls -l zmq/backend/cython/Ĭheckrc.pxd context.pxd _init_.py _poll.pyx utils.pxdĬonstant_enums.pxi context.pyx libzmq.pxd rebuffer.pyx utils.pyxĬonstants.pxi _device.pyx message.pxd socket.pxd _version.pyxĬonstants.pyx error.pyx message.pyx socket.pyx This message was delivered despite cython3 being installed: Fatal: Cython-generated file 'zmq/backend/cython/_device.c' not found.Ĭython >= 0.16 is required to compile pyzmq from a development branch. I tried installing pyzmq again with pip and with easy_install both inside and outside the virtual environment it still didn't work. In both cases, I could see from the output that the proper ZMQ version (4.0.5) was detected, but the installation failed because I didn't have Cython installed (a not-well-documented dependency for building pyzmq, in my opinion).Īfter installing Cython for Python 3. After this, I tried to install pyzmq in my virtual environment with: easy_install pyzmq Next, I built libzmq version 4.0.5 from source. As an alternative, I tried this fix, having pyzmq build its own libzmq dependency: pip install pyzmq -install-option="-zmq=bundled"īut this failed because it couldn't find a certain header file: buildutils/initlibsodium.c:10:20: fatal error: Python.h: No such file or directoryĮrror: command 'x86_64-linux-gnu-gcc' failed with exit status 1 I confirmed in Synaptic Package Manager that the libzmq3 package for Ubuntu is only version 4.0.4. Warning: libzmq features and fixes introduced after 4.0.4 will be unavailable. To install the library and the Python bindings system-wide I used apt-get: sudo apt-get install libzmq3 libzmq3-dev python3-zmqīut when I tried pip install ipython, either inside or outside my virtualenv, the installation would fail with exit status 1 and the warnings: Warning: Detected ZMQ version: 4.0.4, but pyzmq targets ZMQ 4.0.5. The main problem I encountered is with the ZMQ library. Furthermore, the the official and various unofficial guides to installing iPython Notebook don't deal with this use case, either. These reports don't specifically handle Python 3 and virtual environments.
If you haven't already made the switch by installing from the source, and you want to install Python 3.5 system wide, you can use the following steps to upgrade to Python using the fkrull/deadsnakes ppa. Since this site is primarily here to provide help in the use of IPython, and host discussions about current and future features, make sure that it is clear how comments are relevant to the original post or the previous comment. The visitors to /r/IPython come from very different backgrounds and some even have little programming experience.
IPython (now Jupyter) was originally started by Fernando Perez as a way to improve the Python work flow for scientific computing.