美文网首页
WARNING: Retrying (Retry(total=4

WARNING: Retrying (Retry(total=4

作者: Mead170810 | 来源:发表于2021-02-19 17:53 被阅读0次

python安装插件 提示如下错误,解决方案:

(py37_vnpy) D:\proj\vnpy>pip install requirements.txt
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error')
)': /simple/requirements-txt/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error')
)': /simple/requirements-txt/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error')
)': /simple/requirements-txt/
ERROR: Operation cancelled by user

错误截图
  • 打开 windows 目录: C:\Users\[用户名]\
    显示隐藏文件
显示隐藏文件
进入以下目录:
C:\Users\[用户名]\AppData\Roaming\pip
进入配置文件pip.ini目录
修改 pip.ini 文件
[global]
index-url = http://pypi.douban.com/simple
trusted-host =  pypi.douban.com
添加trusted-host配置

相关文章

网友评论

      本文标题:WARNING: Retrying (Retry(total=4

      本文链接:https://www.haomeiwen.com/subject/uzgaxltx.html