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