如果torch版本冲突问题复杂,可以尝试清理环境并重新安装所有依赖项:
pip uninstall torch torchaudio torchvision
pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1 -f https://mirrors.tuna.tsinghua.edu.cn/pytorch-wheels/torch_stable.html
如果torch版本冲突问题复杂,可以尝试清理环境并重新安装所有依赖项:
pip uninstall torch torchaudio torchvision
pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1 -f https://mirrors.tuna.tsinghua.edu.cn/pytorch-wheels/torch_stable.html