学python这么久了,安装的包也有很多了,如pygal,matplotlib,按理说,我应该很有经验,昨天要要用到requests,于是乎,我直接上手安装,可是什么喵的,不管用whl文件安装,还是解压tar文件安装 总是报错。(废话不多说)。
1.我安装的方法:
下载所需文件
https://pypi.python.org/pypi/requests
用whl文件安装,首先进去whl文件所在位置
C:\Users\xxxx>pushd D:\编程软件\requests
D:\编程软件\requests>
D:\编程软件\requests>pip install requests-2.23.0-py2.py3-none-any.whl
Processing d:\编程软件\requests\requests-2.23.0-py2.py3-none-any.whl
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/urllib3/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)':