问题描述
在Ubuntu上使用 sudo python3 -m pip install jupyter
安装jupyter, 安装之后不能连接服务器,显示“到后台服务的连接没能建立,我们会继续尝试重连,请检查网络连接…还有服务配置”,出现如下错误:
尝试解决
- 参考 https://blog.csdn.net/qq_35531549/article/details/88595290 修改了tornado的版本,修改到了5.0.0,因为6.0.3的jupyter需要的tornado版本必须是5.0.0以上,不然不能打开jupyter 。修改之后还是不能连接服务器。
ERROR: notebook 6.0.3 has requirement tornado>=5.0, but you'll have tornado 4.5.3 which is incompatible.
ERROR: ipykernel 5.1.4 has requirement ipython>=5.0.0, but you'll have ipython 2.4.1 which is incompatible.
- 然后参考 https://www.jianshu.com/p/c8d8c4d8b762 ,对配置文件进行了更改,依然不能链接服务
- 最后安装了Python的扩展文件
sudo apt install python3-dev
。依然还是不能链接服务器。 - 查看安装时的提示信息,发现有如下提示信息
ERROR: ipykernel 5.1.4 has requirement ipython>=5.0.0, but you'll have ipython 2.4.1 which is incompatible.
ERROR: ipywidgets 7.5.1 has requirement ipython>=4.0.0; python_version >= "3.3", but you'll have ipython 2.4.1 which is incompatible.
然后依照提示信息对重新安装了ipython,sudo pip3 install --ignore-installed ipython --upgrade
最后,能够正常使用jupyter notebook了