1.使用anaconda+VScode配置的python环境 2.在对应的虚拟环境中已经安装torch库,并正确进入该虚拟环境运行python 3.import python报错 OSError:[WinError 126] 找不到指定的模块。Error loading "D:\Anaconda3\envs\no1\lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies. 解决思路 1.怀疑没...
Error loading “D:\Anaconda\envs\torch2\lib\site-packages\torch\lib\nvfuser_codegen.dll” or one of its dependencies.或者出现 OSError: [WinError 126] 找不到指定的模块。 Error loading "D:\Program Files\Python\Python311\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies. ...
解决方法: I found the root cause of this issue. It's about intel-openmp. If you installed the conda-forge version, then this issue will emerge. The way to fix it is very simple:conda install -c defaults intel-openmp -f. (github Pytorch论坛) 实测有效...
\Users\candr\anaconda3\envs\test4\lib\site-packages\torch\__init__.py", line 130, in <module> raise err OSError: [WinError 182] The operating system cannot run %1. Error loading "C:\Users\candr\anaconda3\envs\test4\lib\site-packages\torch\lib\fbgemm.dll" or one of its ...