安装pytorch时出现错误:An HTTP error occurred when trying to retrieve this URL.

一、详细错误

使用conda安装pytorch:

(pytorch) C:\Users>conda install pytorch torchvision torchaudio cudatoolkit=11.3

出现如下报错:

Solving environment: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url 
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.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'mirrors.tuna.tsinghua.edu.cn\', port=443): Max retries exceeded with url: /anaconda/cloud/pytorch/win-64/repodata.json (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'ssl3_get_server_certificate\', \'certificate verify failed\')])")))'))

二、查看软件源

输入以下命令:

conda config --

你可能感兴趣的:(环境配置,pytorch,anaconda)