【发布时间】:2020-09-03 20:43:15
【问题描述】:
在尝试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
如何解决这个错误?
【问题讨论】:
-
嗨伙计,我认为这个链接可能会有所帮助,github.com/pytorch/pytorch/issues/27693
-
嗨@Puspender Singh,如果您发现任何有帮助的答案,请将其标记为此类(问题左侧的灰色勾号)。也请考虑为有用的答案投票。
标签: python importerror torch oserror python-3.9