pytorch安装遇到的一些问题

在安装pytorch的时候遇到了很多问题
大部分的 步骤可以参照这里:
https://blog.csdn.net/weixin_46668520/article/details/134413927
CUDA安装时建议11.6,因为我其他的新版本安装都出错了
pytorch安装时如果遇到

Could not solve for environment specs
The following packages are incompatible
├─ pin-1 is installable and it requires
│  └─ python 3.11.* , which can be installed;
└─ torchvision 0.14.1  is not installable because there are no viable options
   ├─ torchvision 0.14.1 would require
   │  └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported;
   ├─ torchvision 0.14.1 would require
   │  └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
   ├─ torchvision 0.14.1 would require
   │  └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
   └─ torchvision 0.14.1 would require
      └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported.

这个问题告诉你python版本不对
这时候新建一个虚拟环境

conda create -n myenv python=3.10
conda activate myenv

这个时候继续下载

  • 5
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值