【问题标题】:Import Error - Tornado requires an updated SSL module on ubuntu 14.04导入错误 - Tornado 需要在 ubuntu 14.04 上更新 SSL 模块
【发布时间】:2018-12-02 16:10:19
【问题描述】:

在我的 ubuntu 14.04 上安装 juypter notebook 时,我得到了这个:

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


    【解决方案1】:

    最新的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
    

    【讨论】:

      【解决方案2】:
      python -m pip install --upgrade pip setuptools wheel
      

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

      【讨论】:

        猜你喜欢
        • 2014-10-16
        • 1970-01-01
        • 2016-08-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-11-16
        • 2012-06-01
        • 1970-01-01
        相关资源
        最近更新 更多