无法启动jupyter

Aks*_*ngh 5 ipython jupyter jupyter-notebook

当我尝试运行jupyter时它会显示错误: -

错误:无法启动笔记本服务器,因为找不到可用的端口.

终端日志如下: -

[I 20:52:08.747 NotebookApp] The port 8888 is already in use, trying another random port.
[I 20:52:08.748 NotebookApp] The port 8889 is already in use, trying another random port.
[I 20:52:08.748 NotebookApp] The port 8890 is already in use, trying another random port.
[I 20:52:08.749 NotebookApp] The port 8891 is already in use, trying another random port.
[I 20:52:08.750 NotebookApp] The port 8892 is already in use, trying another random port.
[I 20:52:08.750 NotebookApp] The port 8988 is already in use, trying another random port.
[C 20:52:08.779 NotebookApp] ERROR: the notebook server could not be started because no available port could be found.
Run Code Online (Sandbox Code Playgroud)

而且,我还检查了我的系统以检查该端口上正在运行的进程,并且我发现没有进程正在运行,并且所有这些端口都没有被任何进程使用.但是,仍然会得到那个错误.

在此输入图像描述

我还将jupyter的默认端口更改为其他各种端口,但仍然得到相同的错误.

MD *_*din 7

我遇到了同样的问题然后运行

jupyter notebook --port 9999 
Run Code Online (Sandbox Code Playgroud)


kin*_*ase 0

该错误可能不是由 jupyter 引起的,而是由您的系统引起的。

要清除此问题,您可以尝试在端口 8888 上打开一个简单的 http 服务器,看看失败消息是否相同。

您可以尝试以下命令之一来启动 http 服务器:

python -m SimpleHTTPServer 8888 (Python2)
python -m http.server 8888  (Python3)
Run Code Online (Sandbox Code Playgroud)