pytroch2.4 提示到不到fbgemm.dll

#python/pytorch/问题记录

```

>>> import torch

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

File "C:\Users\95416\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\__init__.py", line 148, in <module>

raise err

OSError: [WinError 126] 找不到指定的模块。 Error loading "C:\Users\95416\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.

```

1. 下载[Release minor fix on version number · lucasg/Dependencies (GitHub: Let’s build from here)](Release minor fix on version number · lucasg/Dependencies)并且运行DependenciesGui.exe,打开fbgemm.dll,位于"C:\\Users\\95416\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\torch\\lib",软件会分析缺失了什么文件。

通常是libomp140.x86_64.dll这个文件。
2. 在下面的链接下载这个文件[libomp140.x86_64.dll : Free .DLL download. (dllme.com)](https://www.dllme.com/dll/files/libomp140_x86_64/00637fe34a6043031c9ae4c6cf0a891d/download)
3. 解压缩后把libomp140.x86_64.dll复制到fbgemm.dll所在相同文件夹即可,"C:\\Users\\95416\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\torch\\lib"。

  • 10
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值