简体   繁体   English

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

[英]Import Error - Tornado requires an updated SSL module on ubuntu 14.04

while installing juypter notebook on my ubuntu 14.04 I am getting this: 在我的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 is: 点是:

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

how to resolve this ? 如何解决呢?

Latest tornado library doesn't support your interpreter version. 最新的tornado库不支持您的解释器版本。 You have two options. 您有两个选择。

Either install old tornado (recommended): 要么安装旧的龙卷风(推荐):

pip install tornado==4.*
pip install jupyter

Or install new python. 或安装新的python。 Ubuntu doesn't provide an official package for it, so you have to use community package: Ubuntu没有为其提供官方软件包,因此您必须使用社区软件包:

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

参考: https : //packaging.python.org/tutorials/installing-packages/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM