Footsteps on my way !
perl/linux/测序分析

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available

centos中使用pip安装报错:pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available   (我这里是pip3 install pyani时报错)

工具/原料

  • centos7.3 python3.6.3 pip3
  • centos7.3 python3.6.3 pip3

方法/步骤

  1. centos7.3中使用pip3安装软件报错:pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

    如下图,当我安装Django时候,报错

    pip is configured ... that require TLS/SSL
  • 解決办法,首先安装 openssl-devel

    yum install openssl-devel

    安装成功后,使用pip3 继续安装django

    pip3 install django

    如果还是报错步骤1中的情况,那么进入步骤3

  • 那么你需要 进入python 安装包 目录下重新编译并且安装python

    cd Python-3.6.3

    进入目录下,依次执行以下3条命令

    ./configure –with-ssl

    make

    sudo make install

    执行完成后 pip3 就可以安装軟件了,如下图2我重新安装Django,安装成功

    pip is configured ... that require TLS/SSL
    pip is configured ... that require TLS/SSL
  • 尊重他人劳动成果,转载请注明出处:Bluesky's blog » pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available

    分享到:更多 ()

    相关推荐

    评论 抢沙发

    • 昵称 (必填)
    • 邮箱 (必填)
    • 网址