Ubuntu16安装jupyter不能连接到服务器

问题描述

在Ubuntu上使用 sudo python3 -m pip install jupyter 安装jupyter, 安装之后不能连接服务器,显示“到后台服务的连接没能建立,我们会继续尝试重连,请检查网络连接…还有服务配置”,出现如下错误:
在这里插入图片描述

尝试解决
  1. 参考 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.

  1. 然后参考 https://www.jianshu.com/p/c8d8c4d8b762 ,对配置文件进行了更改,依然不能链接服务
  2. 最后安装了Python的扩展文件 sudo apt install python3-dev 。依然还是不能链接服务器。
  3. 查看安装时的提示信息,发现有如下提示信息
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了
在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值