![]() ![]() 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… sudo apt-get install cython3 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. How to install the latest IPython notebook in Ubuntu 12.04?.How to install Python package pyzmq properly?.Very little has been written about this topic so far… Because I have both Python 2.7 and Python 3.4 installed on my system–and for other implementation-specific reasons–I decided to use a Python virtual environment (with virtualenv). Here is a script if you want to run all of these instructions in one fell swoop.I wanted to use iPython Notebook in Python 3 on Ubuntu 14.04. venv/share/jupyter/kernels/python2/kernel.json, etc. Likewise, the python2 kernel just 'is' an invocation of the python2 interpreter with module ipykernel_launcher as seen in. share/jupyter/kernels dir and lists in its interface in this case, R is being called to run the function IRkernel::main(), which will send messages back and forth to the Jupiter server. In summary, a kernel just 'is' an invocation of a language-specific executable from a kernel.json file that jupyter looks for in the. for /Users/me/Library/Jupyter/kernels/python3/kernel.json "], The kernel is simply described by a kernel.json file, eg. Kernels available are listed under the kernels folder in Jupyter DATA DIRECTORY (see for details).įor instance on macosx that would be /Users/YOURUSERNAME/Library/Jupyter/kernels/ Python2 /Users/stefano/Library/Jupyter/kernels/python2 Python3 /usr/local/lib/python3.6/site-packages/ipykernel/resources To find out the folder, you might use which PYTHON eg which python3.6 (or pyenv which python3.6 if you are using pyenv!). Remove: $ jupyter kernelspec uninstall python3Īdd a new one: $ jupyter kernelspec install /usr/local/Cellar/python3/3.6.1/bin/ In my case, the python3 kernel setup was broken because the p圓.5 linked was no longer there, replaced by a p圓.6 add/remove kernels For recent versions of jupyter/ipython: use jupyter kernelspec list current kernels $ jupyter kernelspec list ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |