我尝试使用Windows 7将其作为Anaconda的一部分下载后打开ipython笔记本。
我可以在它自己的python终端中打开ipython,但不能在浏览器中打开。当我在命令提示符下运行ìpython notebook
时,我会收到下面的巨大错误日志。
许多其他关于无法加载ipython的问题包括一个相当明显的缺失包指示符,但我无法在日志中发现任何使用内容。
任何可能出错的想法或我可以做些什么来解决它?
Z:\Anaconda>ipython notebook
[I 14:27:59.766 NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
Traceback (most recent call last):
File "Z:\Anaconda\lib\site-packages\IPython\utils\traitlets.py", line 407, in __get__
value = obj._trait_values[self.name]
KeyError: 'ip'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Z:\Anaconda\Scripts\ipython-script.py", line 5, in <module>
sys.exit(start_ipython())
File "Z:\Anaconda\lib\site-packages\IPython\__init__.py", line 120, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "Z:\Anaconda\lib\site-packages\IPython\config\application.py", line 573, in launch_instance
app.initialize(argv)
File "<string>", line 2, in initialize
File "Z:\Anaconda\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "Z:\Anaconda\lib\site-packages\IPython\terminal\ipapp.py", line 321, in initialize
super(TerminalIPythonApp, self).initialize(argv)
File "<string>", line 2, in initialize
File "Z:\Anaconda\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "Z:\Anaconda\lib\site-packages\IPython\core\application.py", line 369, in initialize
self.parse_command_line(argv)
File "Z:\Anaconda\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 "Z:\Anaconda\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "Z:\Anaconda\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 "Z:\Anaconda\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "Z:\Anaconda\lib\site-packages\IPython\config\application.py", line 409, in initialize_subcomman
self.subapp.initialize(argv)
File "<string>", line 2, in initialize
File "Z:\Anaconda\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "Z:\Anaconda\lib\site-packages\IPython\html\notebookapp.py", line 1015, in initialize
self.init_webapp()
File "Z:\Anaconda\lib\site-packages\IPython\html\notebookapp.py", line 868, in init_webapp
self.login_handler_class.validate_security(self, ssl_options=ssl_options)
File "Z:\Anaconda\lib\site-packages\IPython\html\auth\login.py", line 88, in validate_security
if not app.ip:
File "Z:\Anaconda\lib\site-packages\IPython\utils\traitlets.py", line 412, in __get__
value = method()
File "Z:\Anaconda\lib\site-packages\IPython\html\notebookapp.py", line 420, in _ip_default
s = socket.socket()
File "Z:\Anaconda\lib\socket.py", line 126, in __init__
_socket.socket.__init__(self, family, type, proto, fileno)
OSError: [WinError 10022] An invalid argument was supplied
If you suspect this is an IPython bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org
答案 0 :(得分:0)
最终修复此问题的原因是在本地C驱动器上安装Anaconda,而不是映射的共享驱动器