在python中安装包出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))

2021-01-02 19:32

阅读:768

标签:解决办法   outer   class   iss   invoke   version   use   stat   vendor   

先向大家展示以下困扰了我好久的问题

C:\Users\caiya>pip install pipenv
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with -m pip instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ConnectTimeoutError(, Connection to pypi.org timed out. (connect timeout=15)): /simple/pipenv/
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)",): /simple/pipenv/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ConnectTimeoutError(, Connection to pypi.org timed out. (connect timeout=15)): /simple/pipenv/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ConnectTimeoutError(, Connection to pypi.org timed out. (connect timeout=15)): /simple/pipenv/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ConnectTimeoutError(, Connection to pypi.org timed out. (connect timeout=15)): /simple/pipenv/
ERROR: Could not find a version that satisfies the requirement pipenv (from versions: none)
ERROR: No matching distribution found for pipenv

解决办法:pip install keras -i http://pypi.douban.com/simple --trusted-host pypi.douban.com(其中的keras是你需要下载的,根据自己需求自行更改)

在python中安装包出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))

标签:解决办法   outer   class   iss   invoke   version   use   stat   vendor   

原文地址:https://www.cnblogs.com/caiya/p/12992759.html


评论


亲,登录后才可以留言!