导入错误-龙卷风在ubuntu 14.04上需要更新的SSL模块

时间:2018-06-23 10:59:54

标签: python ubuntu pip ubuntu-14.04 tornado

在ubuntu 14.04上安装juypter笔记本时,我得到了这个信息:

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是:

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

如何解决这个问题?

2 个答案:

答案 0 :(得分: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 :(得分:1)

python -m pip install --upgrade pip setuptools wheel

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