【发布时间】:2020-12-02 05:16:45
【问题描述】:
我正在使用 Amazon Sagemaker 并尝试通过 anaconda python3 notebook 安装 gaapi4py 包。
到目前为止,我已经尝试了以下命令:
%conda install gaapi4py
和
conda install gaapi4py
Got same error:
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/conda-forge/linux-64/current_repodata.json>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
'https://conda.anaconda.org/conda-forge/linux-64'
Note: you may need to restart the kernel to use updated packages.
或者,我尝试了以下方法,但也失败了:
pip install gaapi4py
错误文字:
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 0x7f657c803c50>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/gaapi4py/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f657c8035f8>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/gaapi4py/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f657c803550>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/gaapi4py/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f657c803400>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/gaapi4py/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f657c803358>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/gaapi4py/
ERROR: Could not find a version that satisfies the requirement gaapi4py (from versions: none)
ERROR: No matching distribution found for gaapi4py
WARNING: You are using pip version 20.0.2; however, version 20.3 is available.
You should consider upgrading via the '/home/ec2-user/anaconda3/envs/python3/bin/python -m pip install --upgrade pip' command.
Note: you may need to restart the kernel to use updated packages.
我做错了什么?以前的所有软件包都运行良好。
更新:
也按照亚马逊书中的建议进行了尝试:
import sys
!{sys.executable} -m pip install gaapi4py
和
import sys
!conda install -y --prefix {sys.prefix} gaapi4py
两者都不起作用,出现与上述相同的错误。
【问题讨论】: