Not the same person, but same problem. I have “Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.40.33810” installed, but still have the issue with the missing dll file. One thing I haven’t seen mentioned here though: the file “.venv\Lib\site-packages\torch\lib\fbgemm.dll” exists.
Download Dependencies_x64_Release.zip from https://github.com/lucasg/Dependencies/releases/tag/v1.11.1 or x86 if you are 32bit, then unzip and open DependenciesGui.exe, open the fbgemm.dll in DependenciesGui.exe, then it will show which file(s) you lost, after that downloading the file(s) you lost into the same folder as fbgemm.dll, and try to run the code again.
Thanks! That resolved my issue. For me it was libomp140, putting that in the directory with the fbgemm.dll solved it.
Yes, I am using Anaconda to code in python. I uninstalled and reinstalled the Anaconda program but it unfortunately is still giving the same error.
Replied in the other comment telling you the previous stuff I did wasn’t able to work. This was able to work, and I have worked out that issue. Thank you!
This is still unresolved. I have pip installations with
torch-2.4.0+cu121
VC_redist.x64.exe (14.40.33810.0)
NVIDIA drivers 560.70
on two machines
Win10:
- with additional full Visual Studio 2022 installation
- dedicated RTX 3070
Win11
- no Visual Studio
- eGPU GTX 1060
The Win10 version is working, the Win11 version not.
edit: Win10 has libomp140.x86_64.dll in c:/Windows/System32 (and a debug version elsewhere for VS 2022), the Win11 version has nothing on the whole drive. So, this dll seems to be no longer a part of vcredist. I loosely remember some recent problems in downloading OpenMP from Microsoft, but cannot find the associated defunctional link.
Same issue. Awaiting for help on this.
Hello, I had the same problem and I just fixed it a minute ago following li_lexun’s solution.
I tried the other solution - downloading from: Latest supported Visual C++ Redistributable downloads | Microsoft Learn but that didn’t work for me.
adding to libomp140.x86_64.dll to c:/windows/system32 works! I got the same error running other tools and it seems that issue is common across.
Hello, I had the fbgemm.dll or one of its dependencies is missing error, and I just fixed it. I tried the vc_redist reinstallation, downloading vscommunity, and nothing worked.
What worked for me is this:
- Install miniconda
- Add the folder miniconda and miniconda/Scripts to the user PATH
- Check your python version // In my case 3.12.2
- conda create -n my_environment python=3.12.2
- conda activate my_environment
- conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia //Because previusly I had installed CUDA Toolkit 11.8 Downloads | NVIDIA Developer
- conda install -c conda-forge librosa pandas numpy
And then I tried the following code:
// testTorch.py
import torch
def verificar_torch():
try:
print(“Torch importado exitosamente”)
# Crear un tensor simple para verificar funcionalidad básica
tensor = torch.tensor([1.0, 2.0, 3.0])
print(f"Tensor creado: {tensor}“)
return True
except Exception as e:
print(f"Error al importar torch o al crear un tensor: {e}”)
return False
if name == “main”:
verificar_torch()
And it worked. I hope this helps you.
THANKS A LOT!! I suffered for several hours and I couldn’t use the openai-whisper, I downloaded cuda, redists and other, but only downloading this dll to the system32 folder helped me!
Check my another post belowhttps://discuss.pytorch.org/t/failed-to-import-pytorch-fbgemm-dll-or-one-of-its-dependencies-is-missing/201969/23?u=li_lexun, I tell the solution in that post.
Hello, I am currently troubled by this issue. I tried downloading and installing VC_dedist, but the problem still hasn’t been resolved. Do you have a better way?
My antoher post show the solution.
This helped! Thanks my guy.
Thank u very much!!!It worked!
ok.i’ll go to read it
what exactly do I install or change? i’m confused.
I just sign up this page to give you me very thank thanks