0

我目前使用的是 AWS 云计算提供商 Paperspace。它们允许通过 GPU 加速轻松访问 AW2 中的 EC2 终端。我基于代码服务器创建了一个 docker 映像,然后安装了 python/jupyter 扩展。但是,每次我尝试启动笔记本时,都会出现以下错误:

Failed to connect to Jupyter notebook. http://127.0.0.1:8889/ Error: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.

如果我尝试从终端启动笔记本,则会收到以下消息:

(base) root@nso4u536:/notebooks# jupyter notebook
[I 16:17:13.888 NotebookApp] The port 8888 is already in use, trying another port.
[I 16:17:13.948 NotebookApp] JupyterLab extension loaded from /home/coder/miniconda3/lib/python3.8/site-packages/jupyterlab
[I 16:17:13.948 NotebookApp] JupyterLab application directory is /home/coder/miniconda3/share/jupyter/lab
[C 16:17:13.950 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.
(base) root@nso4u536:/notebooks# jupyter notebook --allow-root
[I 16:17:24.062 NotebookApp] The port 8888 is already in use, trying another port.
[I 16:17:24.125 NotebookApp] JupyterLab extension loaded from /home/coder/miniconda3/lib/python3.8/site-packages/jupyterlab
[I 16:17:24.125 NotebookApp] JupyterLab application directory is /home/coder/miniconda3/share/jupyter/lab
[I 16:17:24.127 NotebookApp] Serving notebooks from local directory: /notebooks
[I 16:17:24.127 NotebookApp] Jupyter Notebook 6.2.0 is running at:
[I 16:17:24.127 NotebookApp] http://localhost:8889/?token=...
[I 16:17:24.127 NotebookApp]  or http://127.0.0.1:8889/?token=...
[I 16:17:24.127 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 16:17:24.130 NotebookApp] No web browser found: could not locate runnable browser.

从消息中,我猜这个问题与端口有关,或者与 jupyter 没有正确生成令牌的事实有关(除非 ... 令牌是正常的东西)。如果有人遇到类似的问题,请告诉我,非常感谢任何帮助。

4

0 回答 0