“ssl module in Python is not available” when installing package with pip3

后端 未结 28 1734
别跟我提以往
别跟我提以往 2020-11-22 08:51

I\'ve install Python 3.4 and Python 3.6 on my local machine successfully, but am unable to install packages with pip3.

When I execute pip3 install

28条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 09:06

    In my case with using Mac, I deleted /Applications/Python 3.7. because I already had Python3.7 by brew install python3 .

    But it was a trigger of the message

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

    What I did in my situation

    1. I downloaded macOS 64-bit installer again, and installed.
    2. Double click /Applications/Python3.6/Install Certificates.command and /Applications/Python3.6/Update Shell Profile.command.
    3. Reboot mac
    4. And I am not sure but possibly contributed to succeed is pip.conf. See pip install fails.

提交回复
热议问题