Python 安装第三方库,python第三方库,cmd进入Pytho
Python 安装第三方库,python第三方库,cmd进入Pytho
cmd进入Python安装路径scripts文件夹
>pip install requests
报错:
Collecting requests
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)‘),)‘: /simple/requests/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)‘),)‘: /simple/requests/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)‘),)‘: /simple/requests/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)‘),)‘: /simple/requests/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)‘),)‘: /simple/requests/
Could not fetch URL https://pypi.python.org/simple/requests/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.python.org‘, port=443): Max retries exceeded with url: /simple/requests/ (Caused by SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)‘),)) - skipping
Could not find a version that satisfies the requirement requests (from versions: )
原因:查找网上的解释是网速太慢,或被墙了。
解决办法:使用国内镜像加速。
>pip install requests -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
问题解决。
Python 安装第三方库
相关内容
- 详解Python安装tesserocr遇到的各种问题及解决办法,
- Python3 求最大/小值及索引值 Numpy,,Python3 求最
- selenium+python自动化86-循环点击遇到的坑,,前言selenium
- Python_Excel文件操作,, 1 ‘‘‘ 2
- CentOS7 安装 Python3.6,centos7python3.6,先看编译安装,编译
- python -m xxx.py和python xxx.py的区别,,先看下python
- Python 3.6.5 导入pymysql模块出错:No module named 'pym
- Python中模拟超市抹零结账行为代码,,在IDLE中创建一个
- python 将图片转换为base64编码转储进数据库,,# _*_ codi
- Python爬虫requests 下载图片,,import req
评论关闭