错误信息
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)")'
换指定源下载使用
- 找到当前用户(Administrator)
C:\Users\Administrator\AppData\Roaming\
- 新建目录(
C:\Users\Administrator\AppData\Roaming\pip\
) - 新建文件(
C:\Users\Administrator\AppData\Roaming\pip\pip.ini
) pip.ini写入内容
[global] timeout = 6000 index-url = https://pypi.tuna.tsinghua.edu.cn/simple trusted-host = pypi.tuna.tsinghua.edu.cn
使用
# xxxxxx 为 你需要的 安装包 pip install xxxxxx -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
Comment here is closed