一.问题描述
1.win7 64位系统
2.安装方式:pip3 install paddlepaddle
3.python 版本:3.5.2
安装导入import paddle.fluid出错:DLL load failed: 找不到指定的模块。
二.解决方法
1. 使用depends软件查看究竟缺失什么dll,下载地址:http://www.dependencywalker.com/
下载后,用软件打开paddle安装目录(C:\Users\Administrator\AppData\Local\Programs\Python\Python35\Lib\site-packages\paddle\ fluid)的core.pyd,于是软件提示缺失了两个DLL,就是下图中黄色的两个:
2.在电脑C盘中查找,其中大部分可以找到,基本都在C:\Users\Administrator\AppData\Local\Programs\Python\Python35\Lib\site-packages\paddle\libs文件夹下。将缺失文件拷贝到C:\Windows\System32
再次使用depends软件查看,还有一个msvcr120.dll缺失,在电脑中找不到,下载一个,地址:https://cn.dll-files.com/msvcr120.dll.html
根据电脑系统位数下载,我的是64位。将其拷贝到C:\Windows\System32。
3.再次使用depends软件查看,直到黄色叹号全部消失,恭喜你离问题解决更近了一步。
4.打开python解释器测试一下,可以看到paddle导入成功,问题得到解决, 是不是有种如释重负的感觉?找个paddlepaddle的demo跑一下吧!
总结:DLL load failed: 找不到指定的模块问题,是因为系统缺失了某些dll依赖文件,特别是Ghost版的win7更容易出现该类问题。depends软件就显的很强大了,缺什么补什么,打完补丁就妥妥的听话了。
按paddlepaddle.org.cn的快速安装,出现这个问题:
W0131 16:28:38.602265 9596 operator.cc:179] fill_constant raises an exception class std::runtime_error, cublas64_100.dll not found.
C:\Python\Python37\lib\site-packages\paddle\fluid\executor.py:779: UserWarning: The following exception is not an EOF exception.
"The following exception is not an EOF exception.")
Traceback (most recent call last):
File "", line 1, in
File "C:\Python\Python37\lib\site-packages\paddle\fluid\install_check.py", line 123, in run_check
test_simple_exe()
File "C:\Python\Python37\lib\site-packages\paddle\fluid\install_check.py", line 119, in test_simple_exe
exe0.run(startup_prog)
File "C:\Python\Python37\lib\site-packages\paddle\fluid\executor.py", line 780, in run
six.reraise(*sys.exc_info())
File "C:\Python\Python37\lib\site-packages\six.py", line 703, in reraise
raise value
File "C:\Python\Python37\lib\site-packages\paddle\fluid\executor.py", line 775, in run
use_program_cache=use_program_cache)
File "C:\Python\Python37\lib\site-packages\paddle\fluid\executor.py", line 822, in _run_impl
use_program_cache=use_program_cache)
File "C:\Python\Python37\lib\site-packages\paddle\fluid\executor.py", line 899, in _run_program
fetch_var_name)
RuntimeError: cublas64_100.dll not found.
我也没有找到core.pyd文件,只有以下这两个pyd文件
而且打开core_avx.pyd查看缺失的dll文件好多。。。怎么解决
这个软件看起来非常不错
还是第一次听说有depends这个软件
找不到core.pyd
学习了
我的问题应该就是这样,怎么解决呢?
我安装的过程中是这种情况,怎么解决呢/
找不到 core.pyd的文件
我也找不到那个文件, 你最后解决了吗
上次遇到这个问题换个阿里云的源重装就好了
朋友,请问解决了嘛。
这样也可以
百度一下,无所不有
这个解决方法彻底
没有什么是钱解决不了的哈哈
土豪另说了,^_^
我的电脑也是出现这个问题
解决了吗
感谢分享解决方案,推荐软件太好了