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

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

    I am on macOS and I had used brew but what Vaulstein mentioned in his answer didn't cover my case.

    I run the following commands to make sure my current python was not installed by brew

    brew list | grep python           
    python
    python@2
    
    brew info python
    python@3.8: stable 3.8.3 (bottled)
    Interpreted, interactive, object-oriented programming language
    https://www.python.org/
    Not installed
    ... 
    

    So I download the latest 3.8.5 from https://www.python.org/ and when installing it I saw following information

    Certificate verification and OpenSSL

    This package includes its own private copy of OpenSSL 1.1.1. The trust certificates in system and user keychains managed by the Keychain Access application and the security command line utility are not used as defaults by the Python ssl module

    After installed 3.8.5 it fixed the problem.

提交回复
热议问题