requirements.txt的torch torchvison pytorch版本较老怎么办

wanning报错有如:

/anaconda3/envs/Strong_Baseline_of_Pedestrian_Attribute_Recognition/lib/python3.10/site-packages/torch/cuda/__init__.py:145: UserWarning: NVIDIA GeForce RTX 3060 with CUDA capability sm_86 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70. If you want to use the NVIDIA GeForce RTX 3060 GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/ warnings.warn(incompatible_device_warn.format(device_name, capability, " ".join(arch_list), device_name)) Traceback (most recent call last): File 

在复现这个时Strong_Baseline_of_Pedestrian_Attribute_Recognition的readme.md的译文_rapv2数据集_葑歆的博客-CSDN博客

用的python3.10,努力下载能下载的版本,但最终运行时显示pyTorch版本不匹配。

解决方法:

不下载要求的版本,不下载固定版本,如“pip install torch==xxx  -i https://pypi.tuna.tsinghua.edu.cn/simple ”,

不指定版本,让机器自己选择,如“pip install torch  -i https://pypi.tuna.tsinghua.edu.cn/simple ”

我在这里只使用了“pip install torchvision  -i https://pypi.tuna.tsinghua.edu.cn/simple ”,机器自动帮我选择好了对应的torch和torchvision

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值