2013-01-12 203 views
2

我試圖運行IPython筆記本。我進入下面的命令行:IPython筆記本無法正常工作

IPython的筆記本

我碰到下面的錯誤(堆棧跟蹤)

> Traceback (most recent call last): File 
> "C:\Python27\Scripts\ipython-script.py", line 9, in <module> 
>  load_entry_point('ipython==0.13.1', 'console_scripts', 'ipython')() File 
> "C:\Python27\lib\site-packages\IPython\frontend\terminal\ipapp.py", 
> line 388, in launch_new_instance 
>  app.initialize() File "<string>", line 2, in initialize File "C:\Python27\lib\site-packages\IPython\config\application.py", line 
> 84, i n catch_config_error 
>  return method(app, *args, **kwargs) File "C:\Python27\lib\site-packages\IPython\frontend\terminal\ipapp.py", 
> line 313, in initialize 
>  super(TerminalIPythonApp, self).initialize(argv) File "<string>", line 2, in initialize File 
> "C:\Python27\lib\site-packages\IPython\config\application.py", line 
> 84, i n catch_config_error 
>  return method(app, *args, **kwargs) File "C:\Python27\lib\site-packages\IPython\core\application.py", line 325, 
> in initialize 
>  self.parse_command_line(argv) File "C:\Python27\lib\site-packages\IPython\frontend\terminal\ipapp.py", 
> line 308, 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 
> 84, i n catch_config_error 
>  return method(app, *args, **kwargs) File "C:\Python27\lib\site-packages\IPython\config\application.py", line 
> 420, 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 
> 84, i n catch_config_error 
>  return method(app, *args, **kwargs) File "C:\Python27\lib\site-packages\IPython\config\application.py", line 
> 352, in initialize_subcommand 
>  subapp = import_item(subapp) File "C:\Python27\lib\site-packages\IPython\utils\importstring.py", line 
> 40, i n import_item 
>  module = __import__(package,fromlist=[obj]) File "C:\Python27\lib\site-packages\IPython\frontend\html\notebook\__init__.py 
> ", line 8, in <module> 
>  raise ImportError(msg) ImportError: The IPython Notebook requires tornado >= 2.1.0 

我該如何解決這個問題? 我有Python版本2.7

+1

安裝龍捲風? – XORcist

+0

IPython的筆記本電腦需要龍捲風> = 2.1.0 – Amyth

+0

我假設你有Windows os.Have你遵循這些[安裝步驟在Windows(http://ipython.org/ipython-doc/dev/install/install.html#視窗)? – doru

回答

6

你需要安裝龍捲風網絡服務器。假設你已經安裝了點子和你的路徑上:

PIP安裝龍捲風

+1

看到這裏的窗戶安裝PIP:從[這裏] http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows – XORcist

+2

下載龍捲風安裝程序(HTTP://www.lfd.uci .edu /〜gohlke/pythonlibs /#tornado),然後雙擊。 – joaquin

+0

您需要打開visual studio命令提示符或運行vcvarsall.bat(在Visual Studio文件夾中)或手動設置所需的環境變量。一旦你完成了,運行pip。 –