我使用
brew install python3
试图从https下载一个six.moves.urllib.request.urlretrieve
文件,但它抛出了错误
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
在Python安装(from.pkg)中,自述文件指示需要在安装后运行Install Certificates.command
certifi
certify
路径能够使用证书。
但是,在brew安装中,此文件不存在,并且似乎未运行。
我的Mac OS X解决方案:
1)使用从Python语言官方网站https://www.python.org/downloads/下载的本地应用程序Python安装程序升级到Python 3.6.5
我发现这个安装程序要比自制程序更好地更新新Python的链接和符号链接。
2)使用“./Install Certificates.command”安装一个新证书,该文件位于刷新的Python 3.6目录中
出于某种原因,Brew似乎没有运行Python3 bundle for Mac中的
Install Certificates.command
。解决此问题的方法是在brew install python3
之后运行以下脚本(从Install Certificates.command
复制):相关问题 更多 >
编程相关推荐