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

99封情书 提交于 2019-12-13 02:17:57

问题


while installing juypter notebook on my ubuntu 14.04 I am getting this:

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 ?


回答1:


Latest tornado library doesn't support your interpreter version. You have two options.

Either install old tornado (recommended):

pip install tornado==4.*
pip install jupyter

Or install new python. Ubuntu doesn't provide an official package for it, so you have to use community package:

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



回答2:


python -m pip install --upgrade pip setuptools wheel

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



来源:https://stackoverflow.com/questions/51000512/import-error-tornado-requires-an-updated-ssl-module-on-ubuntu-14-04

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!