我正在尝试运行一个使用PyTorch的简单的repo 。虽然我刚刚从pytorch.org (1.2.0)将我的Pytorch升级到最新的CUDA版本,但它仍然抛出相同的错误。我在Windows10上使用conda和python 3.7。raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not com
导入torchvision时出现以下错误。Detected that PyTorch and torchvision were compiled with different CUDA versions.PyTorch has CUDA Version=11.0 and torchvision has CUDA Version=10.1.Please reinstall the torchvision that matches your PyTorch install.
我正在尝试使用Python3.5在我的windows机器上使用import torch。(仅限CPU)(Pip)我已按照中给出的步骤操作。当我尝试导入torch时,它会给我一个错误:File "D:\CFPS.py", line 1, in <module>File "C:\Program Files (x86)\Python35