Win10下pip安装PyTorch后出现“from torch._C import * ImportError: DLL load failed: 找不到指定的模块”错误的解决办法

在Win10系统中使用pip安装PyTorch后,遇到'from torch._C import * ImportError: DLL load failed: 找不到指定的模块'错误。博主分享了亲测有效的解决办法:下载并提取intel-openmp的dll文件到指定目录,确保CUDA目录已添加到环境变量。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

亲测可行(之前找到的方法:添加PATH,对我不管用。例外在此之前装过0.4.1版本的开域导入, 后来更新成0.4.0 就报错了)

博主今天安装遇到了import问题记录一下方便以后参考。

Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python36\lib\site-packages\torch\__init__.py", line 78, in <module>
    from torch._C import *
ImportError: DLL load failed: 找不到指定的模块。

I had this similar problem in windows 10...

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值