【发布时间】:2019-07-31 08:57:13
【问题描述】:
虽然我已经离线下载了一个.whl包,但由于它需要连接到pypi服务器,我无法离线安装它。我能做什么?
我已经从 PyPI 下载了包并尝试安装它。它想再次连接到网络真的很奇怪。我该如何解决这个问题?
pip install Keras-2.2.4-py2.py3-none-any.whl --user
我预计它会安装它。但是,以下消息说它需要连接到网络。
消息:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000230B937FA20>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/keras-preprocessing/
ERROR: Could not find a version that satisfies the requirement keras-preprocessing>=1.0.5 (from Keras==2.2.4) (from versions: none)
ERROR: No matching distribution found for keras-preprocessing>=1.0.5 (from Keras==2.2.4)
【问题讨论】: