PYZMQ missing when running Ipython notebook

Source: Internet
Author: User

Q:

I can run IPython, but if I try to initiate a notebook I get the following error:

~Ipython Notebook Traceback (most recent call Last): File"/usr/local/bin/ipython", line8,inch<module>Load_entry_point ('ipython==2.1.0','console_scripts','Ipython') () File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/__init__.py", line -,inchStart_ipython return launch_new_instance (argv=ARGV, * *Kwargs) File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/config/application.py", line563,inchlaunch_instance app.initialize (argv) File"<string>", line2,inchInitialize File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/config/application.py", line the,inchCatch_config_error return method (app,*args, * *Kwargs) File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/terminal/ipapp.py", line321,inchInitialize Super (Terminalipythonapp, self). Initialize (argv) File"<string>", line2,inchInitialize File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/config/application.py", line the,inchCatch_config_error return method (app,*args, * *Kwargs) File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/core/application.py", line381,inchInitialize Self.parse_command_line (argv) File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/terminal/ipapp.py", line the,inchparse_command_line return Super (Terminalipythonapp, self). Parse_command_line (argv) File"<string>", line2,inchParse_command_line File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/config/application.py", line the,inchCatch_config_error return method (app,*args, * *Kwargs) File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/config/application.py", line475,inchparse_command_line return Self.initialize_subcommand (SUBC, subargv) File"<string>", line2,inchInitialize_subcommand File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/config/application.py", line the,inchCatch_config_error return method (app,*args, * *Kwargs) File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/config/application.py", line406,inchInitialize_subcommand Subapp=Import_item (subapp) File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/utils/importstring.py", line the,inchImport_item Module= __import__ (Package, fromlist=[obj]) File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/html/notebookapp.py", line the,inch<module>CHECK_FOR_ZMQ ('2.1.11','ipython.html') File"/library/python/2.7/site-packages/ipython-2.1.0-py2.7.egg/ipython/utils/zmqrelated.py", linePanax Notoginseng,inchCheck_for_zmq raise Importerror ("%s requires pyzmq >=%s"%(required_by, minimum_version)) ImportError:IPython.html requires PYZMQ>=2.1. One

But as far as I can see, I already has the PYZMQ package installed.

Install PYZMQ              in/library/python/2.7/site-packages/pyzmq-14.3. 1-py2. 7-macosx-10.6-intel.eggcleaning up ...

A:

Arg. The ipython install is a little idiosyncratic. Here's what I had to does to resolve this:

Install Ipython[all]

The issue is that notebooks has their own set of dependencies, which aren ' t installed with pip install ipython . However, had installed Ipython, Pip doesn ' t see the need to add anything if you then try the [all] form.

Reference:

Http://stackoverflow.com/questions/24995438/pyzmq-missing-when-running-ipython-notebook

PYZMQ missing when running Ipython notebook

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.