使用Conda安装Pytorch遇到CondaSSLError以及cudatoolkit版本不兼容问题

CondaSSLError: Encountered an SSL error. Most likely a certificate verification issue.

Exception: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /pytorch/win-64/repodata.json.zst (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: EE certificate key too weak (_ssl.c:1000)'))) 

本人在根据“PyTorch深度学习快速入门教程(绝对通俗易懂!)【小土堆】”该B站视频使用conda 安装pytorch时遇到SSL报错问题,询问ChatGPT,其给出使用如下代码在Anaconda Prompt中进行安装,这会让 Conda 自动选择一个与 PyTorch 兼容的 CUDA 工具包版本

conda install pytorch torchvision torchaudio cudatoolkit -c pytorch -c nvidia

运行后确实无ssl报错,并且成功安装,但是后续使用如下代码检验pytroch能否正常调用GPU时,发现驱动版本过低导致无法正确初始化 。

import torch
torch.cuda.is_available()

然后在 NVIDIA 官方网站(

你可能感兴趣的:(conda,pytorch,ssl)