由于某种原因,我无法打开Ipython笔记本。当我运行命令ipython notebook时,我得到了一长串无法理解的语句以及列表最后一行的Import Error。我几乎可以肯定我完全安装了IPython。我是用pip做的。要检查它是否正确安装,我只需检查其版本。 这是cmd窗口的输出。
C:\Python27\Scripts>ipython --version
3.2.0
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_
python
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,
n catch_config_error
return method(app, *args, **kwargs)
File "C:\Python27\lib\site-packages\IPython\terminal\ipapp.py", line 321, in
nitialize
super(TerminalIPythonApp, self).initialize(argv)
File "<string>", line 2, in initialize
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 75,
n catch_config_error
return method(app, *args, **kwargs)
File "C:\Python27\lib\site-packages\IPython\core\application.py", line 369,
i
initialize
self.parse_command_line(argv)
File "C:\Python27\lib\site-packages\IPython\terminal\ipapp.py", line 316, in
arse_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,
n 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,
n 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,
n import_item
module = __import__(package, fromlist=[obj])
File "C:\Python27\lib\site-packages\IPython\html\notebookapp.py", line 30,
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
抱歉草率输出 一如既往,我非常感谢你的帮助。