在 ubuntu 14.4 上安装了 Anaconda2,然后在命令行运行 ipython notebook 就报如下错误:
root@master:~# ipython notebook
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook`... continue in 5 sec. Press Ctrl-C to quit now.
Traceback (most recent call last):
File "/root/anaconda2/bin/ipython", line 6, in <module>
sys.exit(IPython.start_ipython())
File "/root/anaconda2/lib/python2.7/site-packages/IPython/__init__.py", line 119, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "/root/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 595, in launch_instance
app.initialize(argv)
File "<decorator-gen-111>", line 2, in initialize
File "/root/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 74, in catch_config_error
return method(app, *args, **kwargs)
File "/root/anaconda2/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 297, in initialize
super(TerminalIPythonApp, self).initialize(argv)
File "<decorator-gen-7>", line 2, in initialize
File "/root/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 74, in catch_config_error
return method(app, *args, **kwargs)
File "/root/anaconda2/lib/python2.7/site-packages/IPython/core/application.py", line 401, in initialize
self.parse_command_line(argv)
File "/root/anaconda2/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 292, in parse_command_line
return super(TerminalIPythonApp, self).parse_command_line(argv)
File "<decorator-gen-4>", line 2, in parse_command_line
File "/root/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 74, in catch_config_error
return method(app, *args, **kwargs)
File "/root/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 488, in parse_command_line
return self.initialize_subcommand(subc, subargv)
File "/root/anaconda2/lib/python2.7/site-packages/IPython/core/application.py", line 211, in initialize_subcommand
return super(BaseIPythonApplication, self).initialize_subcommand(subc, argv)
File "<decorator-gen-3>", line 2, in initialize_subcommand
File "/root/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 74, in catch_config_error
return method(app, *args, **kwargs)
File "/root/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 426, in initialize_subcommand
self.subapp.initialize(argv)
File "<decorator-gen-115>", line 2, in initialize
File "/root/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py", line 74, in catch_config_error
return method(app, *args, **kwargs)
File "/root/anaconda2/lib/python2.7/site-packages/notebook/notebookapp.py", line 1023, in initialize
self.init_webapp()
File "/root/anaconda2/lib/python2.7/site-packages/notebook/notebookapp.py", line 887, in init_webapp
self.http_server.listen(port, self.ip)
File "/root/anaconda2/lib/python2.7/site-packages/tornado/tcpserver.py", line 126, in listen
sockets = bind_sockets(port, address=address)
File "/root/anaconda2/lib/python2.7/site-packages/tornado/netutil.py", line 196, in bind_sockets
sock.bind(sockaddr)
File "/root/anaconda2/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address
网上好多建议修改 ipython_notebook_config.py,但还是不管用。折腾了五六个小时,还是没解决,太恼火了。
是不是阿里云服务器有什么网络限制?
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。