ERROR: Could not find a version that satisfies the requirement xx ERROR: No matching distribution xx

        最近研究的项目需要安装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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值