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第三方包仍然存在,能够正常使用。
网友评论