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

Posted caiya

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在python中安装包出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))相关的知识,希望对你有一定的参考价值。

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

C:Userscaiya>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(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001FEA4728048>, 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(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001FEA4728470>, 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(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001FEA4728FD0>, 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(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001FEA4728F98>, 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))的主要内容,如果未能解决你的问题,请参考以下文章

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

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

在 Python 2.7.9 中安装包 [重复]

在 Python 中安装包

学python在pycharm中安装包时所遇到的问题

python基本功