Mac pip confirming SSL certificate
好久没有使用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相关推荐
- 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 ...
- There was a problem confirming the ssl certificate ……
在安装一个Python库onetimepass时发生下面的问题: pip install onetimepass Could not fetch URL https://pypi.python.org ...
- There was a problem confirming the ssl certificate
There was a problem confirming the ssl certificate 在使用pip 或者 爬虫爬取HTTPs时 有时SSL报错 查看最根源的错误是"Can't ...
- 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 ...
- PHP SSL certificate: unable to get local issuer certificate的解决办法
微信小程序开发交流qq群 173683895 承接微信小程序开发.扫码加微信. 当本地curl需要访问https时,出现SSL certificate: unable to get loca ...
- PySpider HTTP 599: SSL certificate problem错误的解决方法
PySpider HTTP 599: SSL certificate problem错误的解决方法 参考文章: (1)PySpider HTTP 599: SSL certificate proble ...
- 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 ...
- 解决SVN提示https证书验证失败问题svn: E230001: Server SSL certificate verification failed: certificate issued
svn: E230001: Server SSL certificate verification failed: certificate issued 今天在使用svn时候发现出现这个问题,这个是因 ...
- 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 ...
- 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 ...
最新文章
- 我偷偷监听了他们的通信流量......
- android 定位 闪退_Android使用百度地图出现闪退及定位时显示蓝屏问题
- POJ3614Sunscreen(优先队列+贪心)
- Android OpenGL ES(十)绘制三角形Triangle .
- java编程能做什么_学习Java编程能做什么工作?
- 串口通信的基本原理----STM32
- php漂亮按钮代码,分享一款金属感十足的按钮样式代码
- linux的dhcp的安装,linux下DHCP的安装配置
- html菜鸟教程zoom,插件 jQuery.panzoom 中文API文档
- 开发比软件测试好吗,前端开发比软件测试发展好吗?
- 推送环境搭建基于开源MPush
- 在不确定的世界里,确定的当个程序员
- win7 共享wifi
- kaggle之共享单车案例
- 华盛顿州法律确定区块链记录具有法律效力和可执行性
- 最全面计算机英语单词列表(二)
- 反斜杠“\”与斜杠“/” 的区别
- SpringBoot项目中配置文件敏感信息(数据用户名、密码)的加密
- 中断源、中断向量、矢量中断、中断向量表
- 彩虹瓶【含详细注释】