dx3906 发表于 2023-4-10 20:45   全显示 1楼
RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA versions. PyTorch has CUDA Version=11.7 and torchvision has CUDA Version=11.8. Please reinstall the torchvision that matches your PyTorch install.
这个提示怎么破?
0
dx3906 发表于 2023-4-10 21:07   全显示 2楼
引用:
原帖由 内力煮火锅 于 2023-4-10 20:50 发表

检查一下你的安装指令里面有没有添加这一行:%pip install torch==1.13.1 cu117 torchvision==0.14.1 cu117 torchtext==0.14.1 torchaudio==0.13.1 torchdata==0.5.1 --extra-index-url https://download.pytorch.org ...
ERROR: Could not find a version that satisfies the requirement cu117 (from versions: none)
ERROR: No matching distribution found for cu117
谢谢,加上这行以后,依然有这个提示
0
回复帖子 发新话题