jupyter notebook OSError: [WinError 10049] 在其上下文中,该请求的地址无效。

C:\Users\MSI>jupyter notebook
[I 12:19:53.310 NotebookApp] [nb_conda_kernels] enabled, 4 kernels found
Traceback (most recent call last):
  File "F:\Emily\Anaconda3\Scripts\jupyter-notebook-script.py", line 5, in <module>
    sys.exit(notebook.notebookapp.main())
  File "F:\Emily\Anaconda3\lib\site-packages\jupyter_core\application.py", line 267, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "F:\Emily\Anaconda3\lib\site-packages\traitlets\config\application.py", line 652, in launch_instance
    app.initialize(argv)
  File "<F:\Emily\Anaconda3\lib\site-packages\decorator.py:decorator-gen-7>", line 2, in initialize
  File "F:\Emily\Anaconda3\lib\site-packages\traitlets\config\application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "F:\Emily\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 1071, in initialize
    self.init_webapp()
  File "F:\Emily\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 919, in init_webapp
    self.http_server.listen(port, self.ip)
  File "F:\Emily\Anaconda3\lib\site-packages\tornado\tcpserver.py", line 126, in listen
    sockets = bind_sockets(port, address=address)
  File "F:\Emily\Anaconda3\lib\site-packages\tornado\netutil.py", line 194, in bind_sockets
    sock.bind(sockaddr)
OSError: [WinError 10049] 在其上下文中,该请求的地址无效。



jupyter notebook --generate-config 

主要是IP不对

然后y即可!!!

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页