最近研究的项目需要安装pytorch,打开pytorch的官网,按照官网给出的命令行下载pytorch,结果出现了各种问题,查了各种中英文网站也没有找到答案,幸好最后解决了问题,现在就把解决方案记录下来,希望能够帮助遇到同样问题的同学。
我的机器是windows操作系统,有独立显卡,CUDA版本为10.2,因此,我的命令行为:
pip install torch==1.12.1+cu102 torchvision==0.13.1+cu102 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu102
为什么安装torch1.12.1呢?因为高版本的torch不再支持CUDA10.2,torch1.12.1是支持CUDA10.2的最高版本。
问题1:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /whl/cu102/torch/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFI

5万+

被折叠的 条评论
为什么被折叠?



