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

后端 未结 28 1730
别跟我提以往
别跟我提以往 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:14

    I had a similar problem on OSX 10.11 due to installing memcached which installed python 3.7 on top of 3.6.

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

    Spent hours on unlinking openssl, reinstalling, changing paths.. and nothing helped. Changing openssl version back from to older version did the trick:

    brew switch openssl 1.0.2e
    

    I did not see this suggestion anywhere in internet. Hope it serves someone.

提交回复
热议问题