PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)

Home Page:http://www.paddlepaddle.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

xiaolongzhuanshi opened this issue · comments

问题描述 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)。

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

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