好久没有使用mac写python代码了,今天打算写一个apscheduler例子,发现机器上并没有装该包,然后通过pip3下载发现报了如下错误:

Collecting apscheduler

Could not fetch URL https://pypi.python.org/simple/apscheduler/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping

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

No matching distribution found for apscheduler

然后通过pip3 --version查看当前pip3版本为9.0.1版本,看网上都说需要升级pip版本,因为在python命令行执行import ssl并没有报错,所以就可以排除是本地ssl库没安装问题。

后来尝试升级pip,如下:

$ pip install --upgrade pip
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages

解决办法:

执行步骤如下:

$ curl https://bootstrap.pypa.io/get-pip.py | python3% Total    % Received % Xferd  Average Speed   Time    Time     Time  CurrentDload  Upload   Total   Spent    Left  Speed
100 1659k  100 1659k    0     0   288k      0  0:00:05  0:00:05 --:--:--  513k
Collecting pipDownloading https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/pip-19.0.3-py2.py3-none-any.whl (1.4MB)100% |████████████████████████████████| 1.4MB 4.4MB/s
Collecting wheelDownloading https://files.pythonhosted.org/packages/96/ba/a4702cbb6a3a485239fbe9525443446203f00771af9ac000fa3ef2788201/wheel-0.33.1-py2.py3-none-any.whl
Installing collected packages: pip, wheelFound existing installation: pip 9.0.1Uninstalling pip-9.0.1:Successfully uninstalled pip-9.0.1
Successfully installed pip-19.0.3 wheel-0.33.1

再执行pip3 --version发现已经升级到19.0.3版本,OK!

执行pip3 install apscheduler,一切正常!

Mac pip confirming SSL certificate相关推荐

  1. Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate

    安装jsonpath:>pip install jsonpath 报错:Could not fetch URL https://pypi.org/simple/pip/: There was a ...

  2. There was a problem confirming the ssl certificate ……

    在安装一个Python库onetimepass时发生下面的问题: pip install onetimepass Could not fetch URL https://pypi.python.org ...

  3. There was a problem confirming the ssl certificate

    There was a problem confirming the ssl certificate 在使用pip 或者 爬虫爬取HTTPs时 有时SSL报错 查看最根源的错误是"Can't ...

  4. OS X EI Captain 下解决 There was a problem confirming the ssl certificate 问题

    参考: Problem Confirming the SSL Certificate - OSX OS X EI Captain 下解决 There was a problem confirming ...

  5. PHP SSL certificate: unable to get local issuer certificate的解决办法

    微信小程序开发交流qq群   173683895    承接微信小程序开发.扫码加微信. 当本地curl需要访问https时,出现SSL certificate: unable to get loca ...

  6. PySpider HTTP 599: SSL certificate problem错误的解决方法

    PySpider HTTP 599: SSL certificate problem错误的解决方法 参考文章: (1)PySpider HTTP 599: SSL certificate proble ...

  7. SSL certificate problem: unable to get local issuer certificate

    fatal: unable to access 'https://github.com/GitHubSi/t...': SSL certificate problem: unable to get l ...

  8. 解决SVN提示https证书验证失败问题svn: E230001: Server SSL certificate verification failed: certificate issued

    svn: E230001: Server SSL certificate verification failed: certificate issued 今天在使用svn时候发现出现这个问题,这个是因 ...

  9. SSL certificate problem, verify that the CA cert is OK. Details:

    使用 git 出现SSL certificate problem, verify that the CA cert is OK. Details: [jifeng@jifeng04 git]$ git ...

  10. CRMEB SSL certificate problem, verify that the CA cert is OK

    CRMEB系统提示这个错误 如果使用curl发起https请求的时候报错:"SSL certificate problem, verify that the CA cert is OK. D ...

最新文章

  1. 我偷偷监听了他们的通信流量......
  2. android 定位 闪退_Android使用百度地图出现闪退及定位时显示蓝屏问题
  3. POJ3614Sunscreen(优先队列+贪心)
  4. Android OpenGL ES(十)绘制三角形Triangle .
  5. java编程能做什么_学习Java编程能做什么工作?
  6. 串口通信的基本原理----STM32
  7. php漂亮按钮代码,分享一款金属感十足的按钮样式代码
  8. linux的dhcp的安装,linux下DHCP的安装配置
  9. html菜鸟教程zoom,插件 jQuery.panzoom 中文API文档
  10. 开发比软件测试好吗,前端开发比软件测试发展好吗?
  11. 推送环境搭建基于开源MPush
  12. 在不确定的世界里,确定的当个程序员
  13. win7 共享wifi
  14. kaggle之共享单车案例
  15. 华盛顿州法律确定区块链记录具有法律效力和可执行性
  16. 最全面计算机英语单词列表(二)
  17. 反斜杠“\”与斜杠“/” 的区别
  18. SpringBoot项目中配置文件敏感信息(数据用户名、密码)的加密
  19. 中断源、中断向量、矢量中断、中断向量表
  20. 彩虹瓶【含详细注释】

热门文章

  1. 魔方机器人之SVM算法识别魔方颜色
  2. 启用静态NVI的NAT的配置步骤及示例
  3. 三明学院信息工程学院网络攻防大赛-初赛官方解题报告
  4. 网络安全等级保护行业政策汇总
  5. 一些关于罗马字符的知识
  6. 软件工程复习笔记——项目计划
  7. 神兽来了服务器维护,2016年3月31日服务器维护公告
  8. PHP开发基础(一)
  9. 计算机语言窗口如何归位,右下角时间语言电脑图标跑到左边去了如何还原
  10. windows服务器如何搭建网站,Windows系列服务器网站搭建详细过程