在尝试时import torch-cpu
,会引发以下错误:
Traceback (most recent call last): File "<pyshell#0>", line 1, in <module>
import torch File "C:\Users\Ravi\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\__init__.py", line 81, in <module>
ctypes.CDLL(dll) File "C:\Users\Ravi\AppData\Local\Programs\Python\Python38\lib\ctypes\__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode) OSError: [WinError 193] %1 is not a valid Win32 application
如何解决此错误?