美文网首页
mac上解决pip安装“the ssl module in Py

mac上解决pip安装“the ssl module in Py

作者: 盗花 | 来源:发表于2020-06-30 22:32 被阅读0次

mac电脑上使用pip3 install airtest时出现pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.问题,一番搜寻后,可使用如下命令完美解决
brew reinstall python.
备注:我常用python版本为3.7.3,备用版本为3.6、3.8(可使用brew switch python <版本号>切换),系统原装版本为2.7,且已在3.7版本下安装了众多python第三方包。使用命令brew reinstall python后,发现python的版本仍然是3.7(只不过升级成了3.7.7),且众多python第三方包仍然存在,能够正常使用。

相关文章

网友评论

      本文标题:mac上解决pip安装“the ssl module in Py

      本文链接:https://www.haomeiwen.com/subject/mtwfqktx.html