Ipython笔记本pyzmq错误

时间:2015-03-10 22:43:40

标签: ipython ipython-notebook

当我运行ipython笔记本时;我在控制台中收到“ImportError:IPython.html需要pyzmq> = 13”错误消息。我已经运行了“pip install”ipython [notebook]“”但是我无法运行笔记本。你能不能帮忙解决这个问题。

C:\Python27\Scripts>ipython notebook
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Python27\Scripts\ipython.exe\__main__.py", line 9, in <module>
File "C:\Python27\lib\site-packages\IPython\__init__.py", line 120, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 573, in launch_instance app.initialize(argv)
File "<string>", line 2, in initialize
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "C:\Python27\lib\site-packages\IPython\terminal\ipapp.py", line 321, in initialize super(TerminalIPythonApp, self).initialize(argv)
File "<string>", line 2, in initialize
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "C:\Python27\lib\site-packages\IPython\core\application.py", line 369, in initialize self.parse_command_line(argv)
File "C:\Python27\lib\site-packages\IPython\terminal\ipapp.py", line 316, in parse_command_line
return super(TerminalIPythonApp, self).parse_command_line(argv)
File "<string>", line 2, in parse_command_line
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error 
return method(app, *args, **kwargs)
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 471, in parse_command_line
return self.initialize_subcommand(subc, subargv)
File "<string>", line 2, in initialize_subcommand
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 402, in initialize_subcommand
subapp = import_item(subapp)
File "C:\Python27\lib\site-packages\IPython\utils\importstring.py", line 42, in import_item
module = __import__(package, fromlist=[obj])
File "C:\Python27\lib\site-packages\IPython\html\notebookapp.py", line 29, in <module>
check_for_zmq('13', 'IPython.html')
File "C:\Python27\lib\site-packages\IPython\utils\zmqrelated.py", line 12, in check_for_zmq
  raise ImportError("%s requires pyzmq >= %s"%(required_by,minimum_version))
 ImportError: IPython.html requires pyzmq >= 13

2 个答案:

答案 0 :(得分:4)

看起来你需要pyzmq包(版本&gt; = 13)。

您可以尝试安装它(或在需要时进行升级): pip install --upgrade pyzmq

答案 1 :(得分:0)

这些适用于我(win8 + anaconda 2.7.10)

  • 卸载zmq 4.0.4。
  • 安装zmq 3.2.4。
  • pip uninstall ipython
  • pip install“ipython [all]”
  • pip uninstall pyzmq
  • pip install pyzmq