导入错误 - Tornado需要在ubuntu 14.04上更新SSL模块

问题描述 投票:1回答:2

在我的ubuntu 14.04上安装jupyter笔记本时我得到了这个:

ImportError: Tornado requires an up-to-date SSL module. This means Python 2.7.9+ or 3.4+ (although some distributions have backported the necessary changes to older versions).

点子是:

pip 10.0.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

怎么解决这个?

python ubuntu pip ubuntu-14.04 tornado
2个回答
9
投票

最新的tornado库不支持您的解释器版本。你有两个选择。

要么安装旧的龙卷风(推荐):

pip install tornado==4.*
pip install jupyter

或者安装新的python。 Ubuntu没有为它提供官方包,所以你必须使用社区包:

sudo add-apt-repository ppa:jonathonf/python-2.7
sudo apt-get update
sudo apt-get install python2.7
pip install jupyter

1
投票
python -m pip install --upgrade pip setuptools wheel

ref:https://packaging.python.org/tutorials/installing-packages/

© www.soinside.com 2019 - 2024. All rights reserved.