在RHEL7上启动jupyter笔记本的套接字错误

时间:2019-01-09 23:36:03

标签: linux python-2.7 jupyter-notebook redhat

我最近在远程redhat linux 7企业服务器上安装了anaconda。然后我注销并重新登录,现在当我尝试使用以下命令启动jupyter notebook时,出现以下错误消息。是否有人看到问题所在并有任何解决建议?

命令:

[username@svr1 ~]$ jupyter notebook

错误:

[I 18:17:19.625 NotebookApp] Writing notebook server cookie secret to /run/user/                                 7505061/jupyter/notebook_cookie_secret
Traceback (most recent call last):
  File "/home/username/anaconda2/bin/jupyter-notebook", line 11, in <module>
    sys.exit(main())
  File "/home/username/anaconda2/lib/python2.7/site-packages/jupyter_core/applica                                 tion.py", line 266, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/home/username/anaconda2/lib/python2.7/site-packages/traitlets/config/app                                 lication.py", line 657, in launch_instance
    app.initialize(argv)
  File "<decorator-gen-7>", line 2, in initialize
  File "/home/username/anaconda2/lib/python2.7/site-packages/traitlets/config/app                                 lication.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/username/anaconda2/lib/python2.7/site-packages/notebook/notebookapp                                 .py", line 1628, in initialize
    self.init_webapp()
  File "/home/username/anaconda2/lib/python2.7/site-packages/notebook/notebookapp                                 .py", line 1407, in init_webapp
    self.http_server.listen(port, self.ip)
  File "/home/username/anaconda2/lib/python2.7/site-packages/tornado/tcpserver.py                                 ", line 143, in listen
    sockets = bind_sockets(port, address=address)
  File "/home/username/anaconda2/lib/python2.7/site-packages/tornado/netutil.py",                                  line 168, in bind_sockets
    sock.bind(sockaddr)
  File "/home/username/anaconda2/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address

-bash: syntax error near unexpected token `('
[username@svr1 ~]$ socket.error: [Errno 99] Cannot assign requested address
-bash: socket.error:: command not found
[username@svr1 ~]$

0 个答案:

没有答案