2016-04-09 47 views
5

当我尝试jupyter运行它给我的错误: -能不能够启动jupyter

ERROR: the notebook server could not be started because no available port could be found.

终端登录如下: -

[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. 

而且,我也检查了我系统来检查哪个进程正在该端口上运行,我发现没有进程正在运行,并且所有这些端口都没有被任何进程使用。但是,仍然有这个错误。

enter image description here

我也改变jupyter其他各种端口的默认端口,但仍然得到同样的错误。

回答

0

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

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

你可以试试下面的命令之一启动HTTP服务器:

python -m SimpleHTTPServer 8888 (Python2) 
python -m http.server 8888 (Python3)