安装pytorch时出现CondaHTTPError

问题描述 投票:0回答:1

我已经在 Windows 10 上安装了 Anaconda 4.2。当我尝试运行以下命令来安装 PyTorch 时。

conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch

我收到以下错误:

(base) C:\Users\DELL>conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/pytorch/win-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/pytorch/win-64'

谁能帮我解决这个问题吗?

http pytorch connection
1个回答
0
投票

尝试使用此答案中建议的 --insecure 标志来禁用 ssl 验证。

© www.soinside.com 2019 - 2024. All rights reserved.