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

前端 未结 30 3030
遇见更好的自我
遇见更好的自我 2020-11-22 11:09

I am using Python3.6, when I try to install \"modules\" using pip3, I am facing the below mentioned issue \"pip is configured with locations that require TLS/SS

相关标签:
30条回答
  • 2020-11-22 12:04

    For OpenSUSE in the same manner, but a few changes of listed above packages:

    zypper install zlib-devel libopenssl-devel ncurses-devel sqlite3-devel readline-devel tk-devel gdbm-devel libpcap-devel xz-devel
    

    Then cd to Python sources dir and

    make
    make install
    

    or

    make
    make altinstall
    

    And perhaps

    ln -s /usr/local/lib64/python3.6/lib-dynload/ /usr/local/lib/python3.6/lib-dynload
    

    should be executed for OpenSUSE users. See Python 3.7 install not working on openSUSE Leap 42.3

    0 讨论(0)
  • 2020-11-22 12:04

    The issue is due to OpenSSL package is missing on your PC.

    If pip install openpyxl also gives error.

    you can fix this by installing OpenSSL(Win64 OpenSSL v1.1.1g) from below site :

    slproweb.com/products/Win32OpenSSL.html
    

    Restart the IDE you are using, for changes to be in effect.

    0 讨论(0)
  • 2020-11-22 12:05

    Just try installing through Anaconda prompt

    0 讨论(0)
  • 2020-11-22 12:05

    Fixed this without having to change anything related to TSL/SSL.

    I was trying to see if the same thing was happening to pip, and saw that pip was broken. Did some digging and realized it's probably caused by Homebrew deleted python@2 on February 1st, 2020.

    Running brew uninstall python@2 to delete python2 installed by Homebrew.

    Destroyed the virtual env created using python3 and created a new one.
    pip3 installing works fine again.

    0 讨论(0)
  • 2020-11-22 12:05

    This worked for me:

    yum install python36-pyOpenSSL 
    

    python version and package manager might differ.

    0 讨论(0)
  • 2020-11-22 12:06

    The problem probably comes from your installed openssl package version. That was the case for me and I fixed this issue just upgrading it. I'm on Mac OS, using brew :

    brew upgrade openssl
    

    If you installed python with brew, this should directly fix the issue with it, as python is dependent on openssl

    0 讨论(0)
提交回复
热议问题