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

前端 未结 30 3071
遇见更好的自我
遇见更好的自我 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 11:57

    MAC OS

    I had the same problem on Mac OS(Mojave) and solved the problem as mentioned on this link - Openssl issue.

    1. If you do not have Homebrew or don't know what is Homebrew:

      /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    2. Or if you already have Homebrew installed:

    brew update && brew upgrade
    brew uninstall --ignore-dependencies openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
    

    Update: Keep in mind, that I had to use --ignore-dependencies flag, because other packages installed that depend on OpenSSL.

    Additional if the problem is caused after using pyenv, you can fix it by using:

    brew reinstall python
    

提交回复
热议问题