python failed to execute_PyQt5 Pyinstaller 打包 exe 提示 failed to execute script

系统环境为:win7 32 位虚拟机

python 3.5.2

pyinstaller 3.3.1

PyQt5.9

python 文件在未打包时可运行

但是-w 打包后提示: failed to execute script DKExam

打包时情况如下:

C:\Users\xxx\Documents\exam>pyinstaller DKExam.py -w

3406 INFO: PyInstaller: 3.3.1

3406 INFO: Python: 3.5.2

3407 INFO: Platform: Windows-Vista-6.0.6000-SP0

3408 INFO: wrote C:\Users\xxx\Documents\exam\DKExam.spec

3758 INFO: UPX is not available.

3771 INFO: Extending PYTHONPATH with paths

['C:\\Users\\xxx\\Documents\\exam', 'C:\\Users\\xxx\\Documents\\exam']

3771 INFO: checking Analysis

7792 INFO: checking PYZ

8021 INFO: checking PKG

8028 INFO: Building because C:\Users\xxx\Documents\exam\build\DKExam\DKExam.exe.

manifest changed

8028 INFO: Building PKG (CArchive) out00-PKG.pkg

8733 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.

8735 INFO: Bootloader c:\users\xxx\appdata\local\programs\python\python35-32\lib

\site-packages\PyInstaller\bootloader\Windows-32bit\runw.exe

8736 INFO: checking EXE

8758 INFO: Building because manifest changed

8759 INFO: Building EXE from out00-EXE.toc

8883 INFO: Appending archive to EXE C:\Users\xxx\Documents\exam\build\DKExam\DKE

xam.exe

9025 INFO: Building EXE from out00-EXE.toc completed successfully.

9029 INFO: checking COLLECT

WARNING: The output directory "C:\Users\xxx\Documents\exam\dist\DKExam" and ALL

ITS CONTENTS will be REMOVED! Continue? (y/n)y

12541 INFO: Removing dir C:\Users\xxx\Documents\exam\dist\DKExam

14092 INFO: Building COLLECT out00-COLLECT.toc

44921 INFO: Building COLLECT out00-COLLECT.toc completed successfully.

在 64 位 win10 的物理机上打包可行

但是由于物理机是 64 位 Python,打包后要在32 位无 python 环境 win7 上运行测试

所以无奈只能用虚拟机,却碰到了这个问题

希望大佬们能出手相助,不胜感激

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值