python可执行程序在windows下could not be extracted_pyinstaller部署的exe文件无法在其他pc(虚拟机)上运行...

显影机:windows7 64位

python2.7.13 32位

Qt5.7.1 32位vs2015+PyQt5 U gpl-5.7.1

我使用pyinstaller qrprint.py部署,它在这台机器上运行良好。在

然后我将文件夹复制到虚拟机(VMWareWorkstation+winowd7 32bit)并运行,它无法处理信息Failed to execute script pyi_rth_qt5

我试图寻找解决方案,就像https://github.com/pyinstaller/pyinstaller/issues/1679,它帮不上忙。

我用DependencyWalker找到了丢失的dll,它不能工作。在

这是带有pyinstaller qrprint.py --debug的两台机器上的信息

德沃洛普:PyInstaller Bootloader 3.x

LOADER: executable is C:\Users\Administrator\Desktop\python demo\dist\qrPrint\qrPrint.exe

LOADER: homepath is C:\Users\Administrator\Desktop\python demo\dist\qrPrint

LOADER: _MEIPASS2 is NULL

LOADER: archivename is C:\Users\Administrator\Desktop\python demo\dist\qrPrint\qrPrint.exe

LOADER: No need to extract files to run; setting extractionpath to homepath

LOADER: SetDllDirectory(C:\Users\Administrator\Desktop\python demo\dist\qrPrint)

LOADER: Already in the child - running user's code.

LOADER: Python library: C:\Users\Administrator\Desktop\python demo\dist\qrPrint\python27.dll

LOADER: Loaded functions from Python library.

LOADER: Manipulating environment (sys.path, sys.prefix)

LOADER: sys.prefix is C:\Users\ADMINI~1\Desktop\PYTHON~1\dist\qrPrint

LOADER: Setting runtime options

LOADER: Initializing python

LOADER: Overriding Python's sys.path

LOADER: Post-init sys.path is C:\Users\Administrator\Desktop\python demo\dist\qrPrint

LOADER: Setting sys.argv

LOADER: setting sys._MEIPASS

LOADER: importing modules from CArchive

LOADER: extracted struct

LOADER: callfunction returned...

LOADER: extracted pyimod01_os_path

LOADER: callfunction returned...

LOADER: extracted pyimod02_archive

LOADER: callfunction returned...

LOADER: extracted pyimod03_importers

LOADER: callfunction returned...

LOADER: Installing PYZ archive with Python modules.

LOADER: PYZ archive: out00-PYZ.pyz

LOADER: Running pyiboot01_bootstrap.py

LOADER: Running pyi_rth__tkinter.py

LOADER: Running pyi_rth_qt5.py

LOADER: Running pyi_rth_qt5plugins.py

LOADER: Running qrPrint.py

虚拟机:

^{pr2}$

我该怎么办?在

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值