Jupyter:[Errno -2]名称或服务未知

时间:2018-10-04 05:14:41

标签: python google-cloud-platform computer-vision cloud jupyter-notebook

Jupyter笔记本对我来说效果很好。但是在我完成一些软件包的安装之后。它坠毁并停止工作。我什至在互联网上都找不到类似的案例。

我花了很多时间尝试安装一些特殊的软件包:cuda,imgaug,imageio等。万一我尝试卸载jupyter,我不想放弃我的工作!

我不知道该怎么办!

我应该重新安装jupyter吗?有安全的cmd线可以安全地执行此操作吗?

恐怕这样做是因为我不想冒失去任何已安装软件包的风险(我花了很多时间尝试安装它们)

有什么帮助吗?

PS:我正在使用ubuntu 16作为操作系统的Google Cloud VM。

chami_soufiane_fr:~$ jupyter notebook
Traceback (most recent call last):
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/site-packages/traitlets/traitlets.py", line 528, in get
    value = obj._trait_values[self.name]
KeyError: 'allow_remote_access'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 869, in _default_allow_remote
    addr = ipaddress.ip_address(self.ip)
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/ipaddress.py", line 54, in ip_address
    address)
ValueError: '' does not appear to be an IPv4 or IPv6 address
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/chami_soufiane_fr/anaconda3/bin/jupyter-notebook", line 11, in <module>
    sys.exit(main())
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/site-packages/jupyter_core/application.py", line 266, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", line 657, in launch_instance
    app.initialize(argv)
  File "<decorator-gen-7>", line 2, in initialize
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 1629, in initialize
    self.init_webapp()
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 1379, in init_webapp
    self.jinja_environment_options,
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 158, in __init__
    default_url, settings_overrides, jinja_env_options)
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 251, in init_settings
    allow_remote_access=jupyter_app.allow_remote_access,
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/site-packages/traitlets/traitlets.py", line 556, in __get__
    return self.get(obj, cls)
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/site-packages/traitlets/traitlets.py", line 535, in get
    value = self._validate(obj, dynamic_default())
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 872, in _default_allow_remote
    for info in socket.getaddrinfo(self.ip, self.port, 0, socket.SOCK_STREAM):
  File "/home/chami_soufiane_fr/anaconda3/lib/python3.6/socket.py", line 743, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

0 个答案:

没有答案