mac os 下 pip3 报 ssl 错误,有大神遇到过吗

2017-06-05 20:54:24 +08:00
 xj188

无法使用 pip3 安装东西,提示 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting selenium Could not fetch URL https://pypi.python.org/simple/selenium/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping Could not find a version that satisfies the requirement selenium (from versions: )

我看了一下 openssl 是安装的,OpenSSL 1.0.2l 25 May 2017 难得玩下 mac os 下的 python3.6,居然无法使用 pip3 install 有人遇到过啊

8211 次点击
所在节点    Python
1 条回复
a132811
2017-06-05 22:19:51 +08:00
我用的 brew install openssl python3,没有问题。
或者这个能解决你的问题, 最下面的那条答案
https://stackoverflow.com/questions/41489439/pip3-installs-inside-virtual-environment-with-python3-6-failing-due-to-ssl-modul

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/366157

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX