Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用pyinstaller将Paddle依赖跟.py文件打包成.exe后,win10系统可以正常运行,但是win7系统或者cup不支持AVX命令集的运行就会报错 #64188

Open
xiaolongzhuanshi opened this issue May 10, 2024 · 2 comments
Assignees
Labels
status/new-issue 新建 type/build 编译/安装问题

Comments

@xiaolongzhuanshi
Copy link

问题描述 Issue Description

报错信息是这样的
Error: Can not inport paddle core while this file exists: C:\Users\ADMINI^1\AppD
ata\Local\Temp_MEI65842\paddle\fluid\libpaddle.pyd
Traceback <most recent call last):
File "paddle\fluid\core.py", line 269, in
ImportError: DLL load failed with error code -1073741795
During handling of the above exception, another exception occurred:
........省略........
File "PyInstaller\loader\pyinod02_importers.py", line 385, in exec_module
File "paddle\fluid\core.py", line 351, in
uneError: nane 'libpaddle' is not defined
492] Failed to execute script 'ocr' due to unhandled exception!

版本&环境信息 Version & Environment Information

PaddlePaddle版本:2.5。
CPU:win10系统的支持AVX命令集,win7系统的不支持AVX命令集,目前不知道win7系统下支持AVX命令集是怎么样。
系统环境:win10 (正常),win7(有问题)。
Python版本(3.7.1)。

@zhiboniu
Copy link
Contributor

你好,win10和win7系统环境不同,建议重新在win7环境下搭建paddle环境后使用

@xiaolongzhuanshi
Copy link
Author

找到原因了。是Paddle版本太高了,降低到2.3.2,就不会报这个错了。如果又报错,cpu不支持avx这种的就换个noavx版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/new-issue 新建 type/build 编译/安装问题
Projects
None yet
Development

No branches or pull requests

2 participants