pip3 install apscheduler 报错,应该如何解决?

2017-11-09 18:22:55 +08:00
 Vkin

pip3 install apscheduler

Collecting apscheduler

Could not fetch URL https://pypi.python.org/simple/apscheduler/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) - skipping

Could not find a version that satisfies the requirement apscheduler (from versions: )

No matching distribution found for apscheduler

有网友提出的解决方法是 pip3 install certifi

但似乎并没有用,因为已经安装了 certifi

pip3 install certifi

Requirement already satisfied: certifi in /usr/local/lib/python3.6/site-packages

Python 版本 3.6,macos10.12

3632 次点击
所在节点    Python
6 条回复
TimePPT
2017-11-09 18:46:04 +08:00
试试升级下 pip
rebeccaMyKid
2017-11-09 18:51:06 +08:00
你试下换个源. `pip3 install apscheduler -i https://pypi.douban.com/`
Vkin
2017-11-09 19:50:12 +08:00
@TimePPT 无法升级,升级也是同样的提示:Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) - skipping
Vkin
2017-11-09 19:51:06 +08:00
@rebeccaMyKid 也是同样的提示:
pip3 install apscheduler -i https://pypi.douban.com/

Collecting apscheduler
Could not fetch URL https://pypi.douban.com/apscheduler/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) - skipping
Could not find a version that satisfies the requirement apscheduler (from versions: )
No matching distribution found for apscheduler
raysonx
2017-11-09 19:53:59 +08:00
用 curl 访问一下试试。
猜测你机器的 ca 证书有问题。
Vkin
2017-11-09 21:35:21 +08:00
@raysonx 的确是证书的问题。谢谢🙏

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

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

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

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

© 2021 V2EX