在python中安装包出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)),,先向大家展示以下困扰


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

C:\Users\caiya>pip install pipenvWARNING: 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 writeableWARNING: 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))

评论关闭