解决 python出现的[WinError 126] 找不到指定的模块。fbgemm.dll“ or one of its dependencies.

安装torch之后,python运行出现  OSError: [WinError 126] 找不到指定的模块。 Error loading "AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.

问题出现原因:我安装的是最新的python 3.12.4版本,估计torch还不支持。

解决办法:卸载python 3.12.4,然后安装低版本的python就可以解决。我安装的是3.9.10的低版本,运行正常。

如何卸载python可参考这篇文章:python最详细的安装与完全卸载_python卸载-CSDN博客

你可能感兴趣的:(python)