码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2020-05-30 16:02:46      阅读:794      评论:0      收藏:0      [点我收藏+]

标签:解决办法   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(<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))

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

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!