pip或easy_install安装库报错:SSL: CERTIFICATE_VERIFY_FAILED
2018-02-01 15:41
441 查看
使用pip和easy_install安装那个lxml、pyspider这些库或者框架一直提示以下错误:
错误原因:SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:661)
解决办法:
以上两种命令都行,其中 "pythonPackageName" 是你要安装的库名称(比如:requests、lxml等)
Collecting pyspider Could not fetch URL https://pypi.python.org/simple/pyspider/: There was a prob lem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661) - skipping Could not find a version that satisfies the requirement pyspider (from version s: ) No matching distribution found for pyspider
Searching for pyspider Reading https://pypi.python.org/simple/pyspider/ Download error on https://pypi.python.org/simple/pyspider/: [SSL: CERTIFICATE_VE RIFY_FAILED] certificate verify failed (_ssl.c:661) -- Some packages may not be found! Couldn't find index page for 'pyspider' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.python.org/simple/ Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAIL ED] certificate verify failed (_ssl.c:661) -- Some packages may not be found! No local packages or working download links found for pyspider error: Could not find suitable distribution for Requirement.parse('pyspider')
错误原因:SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:661)
解决办法:
# 1.pip install --index-url=http://pypi.python.org/simple/ --trusted-host pypi.python.org pythonPackageName # 2.pip --trusted-host pypi.python.org install pythonPackageName
以上两种命令都行,其中 "pythonPackageName" 是你要安装的库名称(比如:requests、lxml等)
相关文章推荐
- Python:pip install 报错SSL: CERTIFICATE_VERIFY_FAILED
- pip安装报错[SSL:CERTIFICATE_VERIFY_FAILED]解决方法
- easy_install——error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed -- S
- 记录pip3安装报错:[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645) 。。。
- Centos 7安装 ambari,agent报错NetUtil.py-[SSL: CERTIFICATE_VERIFY_FAILED]
- pip3安装django报certificate verify failed的解决方法
- pip ssl certificate verify failed
- facebook graph api 报错SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)')
- pip ssl certificate verify failed
- 使用pip install 或者easy_install安装Python的各种包出现cc failed with exit status 1
- python安装easy_install与pip (win7 64bit)
- Python中easy_install 和 pip 的安装及使用
- python3学习(一) windows下面安装easy_install和pip教程
- Gem 安装 jekyll 遇到 “certificate verify failed” 问题解决办法
- python SSLError CERTIFICATE_VERIFY_FAILED InsecureRequestWarning
- 七牛python sdk 上传报SSL: CERTIFICATE_VERIFY_FAILED]
- CentOs6.8 final安装源码编译安装pip报错ssl
- windows下python安装easy_install和pip
- centos安装python2.7并安装easy_install,pip,ipython
- Centos6.7升级到Python3.5.2以及easy_install、pip的安装