好吧,我有定期重启内核的问题所以试图升级ipython并成功升级。但现在我正在尝试打开ipython notebook
ipython notebook --pylab inline
所以我得到以下错误
追踪(最近一次通话): 文件" / usr / local / bin / ipython",第9行,in load_entry_point(' ipython == 2.2.0',' console_scripts',' ipython')() 文件" /usr/local/lib/python2.7/dist-packages/ipython-2.2.0-py2.7.egg/IPython/ init .py",第120行,在start_ipython中 return launch_new_instance(argv = argv,** kwargs) 文件" /usr/local/lib/python2.7/dist-packages/ipython-2.2.0-py2.7.egg/IPython/config/application.py",第563行,在launch_instance中 app.initialize(ARGV) 文件"",第2行,初始化 文件" /usr/local/lib/python2.7/dist-packages/ipython-2.2.0-py2.7.egg/IPython/config/application.py",第92行,在catch_config_error中 return方法(app,* args,** kwargs) 文件" /usr/local/lib/python2.7/dist-packages/ipython-2.2.0-py2.7.egg/IPython/terminal/ipapp.py" ;,第321行,初始化 super(TerminalIPythonApp,self).initialize(argv) 文件"",第2行,初始化 文件" /usr/local/lib/python2.7/dist-packages/ipython-2.2.0-py2.7.egg/IPython/config/application.py",第92行,在catch_config_error中 return方法(app,* args,** kwargs) 文件" /usr/local/lib/python2.7/dist-packages/ipython-2.2.0-py2.7.egg/IPython/core/application.py" ;,第381行,初始化 self.parse_command_line(ARGV) 文件" /usr/local/lib/python2.7/dist-packages/ipython-2.2.0-py2.7.egg/IPython/terminal/ipapp.py" ;,第316行,在parse_command_line中 return super(TerminalIPythonApp,self).parse_command_line(argv) 文件"",第2行,在parse_command_line中 文件" /usr/local/lib/python2.7/dist-packages/ipython-2.2.0-py2.7.egg/IPython/config/application.py",第92行,在catch_config_error中 return方法(app,* args,** kwargs) 文件" /usr/local/lib/python2.7/dist-packages/ipython-2.2.0-py2.7.egg/IPython/config/application.py" ;,第475行,在parse_command_line中 return self.initialize_subcommand(subc,subargv) 在initialize_subcommand中的文件"",第2行 文件" /usr/local/lib/python2.7/dist-packages/ipython-2.2.0-py2.7.egg/IPython/config/application.py",第92行,在catch_config_error中 return方法(app,* args,** kwargs) 文件" /usr/local/lib/python2.7/dist-packages/ipython-2.2.0-py2.7.egg/IPython/config/application.py" ;,第406行,在initialize_subcommand中 subapp = import_item(subapp) 文件" /usr/local/lib/python2.7/dist-packages/ipython-2.2.0-py2.7.egg/IPython/utils/importstring.py",第42行,在import_item中 module = import (package,fromlist = [obj]) 文件" /usr/local/lib/python2.7/dist-packages/ipython-2.2.0-py2.7.egg/IPython/html/notebookapp.py" ;,第60行,in 引发ImportError(msg +",但你有%s"%tornado.version) ImportError:IPython笔记本需要tornado> = 3.1.0,但你有2.3
所以我尝试安装龙卷风,
sudo pip install tornado
它给了我以下信息
要求已经满足(使用--upgrade升级):/usr/lib/python2.7/dist-packages中的tornado 清理......
我的理解是我的python版本不满足要求或者我有两个版本的python ..如何结束一切到最新版本? 以下是我的操作系统详细信息
Linux mint 12.10,Quantal Quetzal
答案 0 :(得分:0)
要使用pip
升级python包,您必须pass the --upgrade
flag。如果您没有提供标志,那么它将检查您的包是否已安装,如果是,则不会执行任何操作。
要升级Tornado
,请执行
sudo pip install Tornado --upgrade
您也可以尝试使用
installing IPythonpip install ipython [all]
将安装所有依赖项,而不仅仅是pip install ipython
答案 1 :(得分:0)
我想也许您可以使用tornado
安装apt-get install
,因此您会获得旧版本,因此您可以按类型更新tornado
:
sudo pip install tornado --upgrade
iPython
更新为jupyter
,因此您可以输入
sudo pip install jupyter
享受最新版本。