fbgemm.dll [WinError 126] The specified module could not be found.

Опубликовано: 28 Апрель 2026
на канале: rory mulcahey
4,087
110

Quick walkthrough of how to solve a pytorch import error.

Link to dll file: https://github.com/rorymulcahey/libom...

Trying to setting up pytorch.
import torch error
Annoying bug. Error message unclear. CPU integration issue?
OSError: [WinError 126] The specified module could not be found.
Error loading "project\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.
Had to find a missing dll (libomp140.x86_64.dll).
Used DependenciesGui.exe https://github.com/lucasg/Dependencie...
Then found that visual studio installer could add the dll.
VS installer - individual component - MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)
Solution: added libomp140.x86_64.dll to c:\windows\system32

Shoutout to ChristianBraeunlich on stack overflow and sub links for finding the dll file.
https://stackoverflow.com/questions/7...