1、问题:使用conda安装pytorch时出现问题
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
2、报错:
Collecting package metadata (current_repodata.json): failed
CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to
download and install packages.
Exception: HTTPSConnectionPool(host='mirrors.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /anaconda/cloud/peterjc123/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))
3、原因:由报错信息猜测需要下载安装OpenSSL。 下载链接
4、结果:pytorch可以正常安装。