Anaconda jupyter笔记本“连接失败”错误

2024-10-06 07:07:56 发布

您现在位置:Python中文网/ 问答频道 /正文

我最近安装了anaconda并尝试运行Jupyter笔记本。我正在使用Windows10。我打开一个文件夹,运行笔记本。无论何时单击打开文件,在将文件加载到新选项卡几秒钟后,我都会看到以下错误消息: Error message

当我单击“确定”时,我也会看到: enter image description here

enter image description here

我已经重新安装了三次以上的anaconda,但这个问题仍然存在。我的互联网连接在这里不是问题,因为我可以在其他标签上运行谷歌。 以下是anaconda提示符上的错误消息:\


(base) C:\Users\aayus>cd c:\MLcourse

(base) c:\MLCourse>jupyter-notebook
[W 2021-05-25 12:49:15.300 LabApp] 'ip' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-05-25 12:49:15.301 LabApp] 'ip' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[I 2021-05-25 12:49:15.317 LabApp] JupyterLab extension loaded from C:\Users\aayus\anaconda3\lib\site-packages\jupyterlab
[I 2021-05-25 12:49:15.317 LabApp] JupyterLab application directory is C:\Users\aayus\anaconda3\share\jupyter\lab
[I 12:49:15.322 NotebookApp] Serving notebooks from local directory: c:\MLCourse
[I 12:49:15.323 NotebookApp] Jupyter Notebook 6.3.0 is running at:
[I 12:49:15.324 NotebookApp] http://localhost:8888/?token=a24e8ab3aa1629c4892dded671be9d26b149e7492d74a1e9
[I 12:49:15.324 NotebookApp]  or http://127.0.0.1:8888/?token=a24e8ab3aa1629c4892dded671be9d26b149e7492d74a1e9
[I 12:49:15.324 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 12:49:15.366 NotebookApp]

    To access the notebook, open this file in a browser:
        file:///C:/Users/aayus/AppData/Roaming/jupyter/runtime/nbserver-21792-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=a24e8ab3aa1629c4892dded671be9d26b149e7492d74a1e9
     or http://127.0.0.1:8888/?token=a24e8ab3aa1629c4892dded671be9d26b149e7492d74a1e9
[W 12:49:27.828 NotebookApp] Notebook ConditionalProbabilityExercise.ipynb is not trusted
Bad address (C:\ci\zeromq_1602704446950\work\src\epoll.cpp:100)
[I 12:49:28.339 NotebookApp] Kernel started: 4ed3dc80-f87f-41f4-9981-320da9710f87, name: python3
Bad address (C:\ci\zeromq_1602704446950\work\src\epoll.cpp:100)
Bad address (C:\ci\zeromq_1602704446950\work\src\epoll.cpp:100)

(base) c:\MLCourse>[IPKernelApp] WARNING | Parent appears to have exited, shutting down.

有人能帮忙吗?我是个初学者,找不到答案。 提前谢谢


Tags: tofromtokenconfighttpbasejupyteranaconda
2条回答

我也遇到了同样的问题,它解决了这个问题:

windows >> proxy settings >> automatically detect setting >> turn off.

在重新安装Anaconda之后,我遇到了相同的错误,并在这里找到了解决方案:https://github.com/jupyter/notebook/issues/4909

我激活了有问题的环境并安装了以下各项:

  • conda install -c conda-forge pywin32
  • conda install -c anaconda jupyter_client
  • conda install -c conda-forge jupyter_core

工作得很有魅力

相关问题 更多 >