python 打包exe thread报错_[已解决]pyinstaller打包exe运行出错:fatal error returned -1...

别人遇到的:exe运行出错  单独py可以正常运行

运行exe出错:

对应打包命令是:

python pyinstaller.py -w –onefile -p C:\Python27\Lib\site-packages\PyQt4;C:\Python27\;C:\Python27\Lib;C:\Python27\Lib\site-packages\pywin32_system32 –icon="1.ico" DiagnosticTool.py

警告是:

missing module named PyQt4.QtCore.QCoreApplication – imported by PyQt4.QtCore, Y:\temp\GBDT\Trunk\Src\PyInstaller\loader\rthooks\pyi_rth_qt4plugins.py

missing module named PyQt4.QtCore.PYQT_VERSION_STR – imported by PyQt4.QtCore, PyQt4.uic

missing module named nt._isdir – imported by nt, ntpath

missing module named nt._getfullpathname – imported by nt, ntpath

missing module named nt._exit – imported by nt, os

missing module named strop.whitespace – imported by strop, string

missing module named strop.maketrans – imported by strop, string

missing module named strop.lowercase – imported by strop, string

missing module named strop.uppercase – imported by strop, string

missing module named _sre.MAXREPEAT – imported by _sre, sre_constants

missing module named itertools.islice – imported by itertools, repr, heapq

missing module named itertools.ifilterfalse – imported by itertools, sets

missing module named itertools.ifilter – imported by itertools, sets

missing module named itertools.starmap – imported by itertools, collections

missing module named itertools.repeat – imported by itertools, collections

missing module named itertools.imap – imported by itertools, heapq, collections

missing module named itertools.tee – imported by itertools, heapq

missing module named itertools.izip – imported by itertools, heapq

missing module named itertools.chain – imported by itertools, heapq, collections

missing module named itertools.count – imported by itertools, heapq

missing module named org.PyStringMap – imported by org, copy

missing module named org – imported by copy

missing module named exceptions.ReferenceError – imported by exceptions, weakref

missing module named _weakref.ref – imported by _weakref, _weakrefset, weakref

missing module named _weakref.ReferenceType – imported by _weakref, weakref

missing module named _weakref.proxy – imported by _weakref, weakref

missing module named _weakref.getweakrefs – imported by _weakref, weakref

missing module named _weakref.getweakrefcount – imported by _weakref, weakref

missing module named _weakref.ProxyType – imported by _weakref, weakref

missing module named _weakref.CallableProxyType – imported by _weakref, weakref

missing module named copy.deepcopy – imported by copy, weakref, sets

missing module named array.array – imported by array, httplib

missing module named re._compile – imported by re, sre

missing module named re.__all__ – imported by re, sre

missing module named _warnings.warn_explicit – imported by _warnings, warnings

missing module named _warnings.filters – imported by _warnings, warnings

missing module named _warnings.once_registry – imported by _warnings, warnings

missing module named _warnings.default_action – imported by _warnings, warnings

missing module named _warnings.warn – imported by _warnings, warnings

missing module named warnings.warn – imported by warnings, random

missing module named ‘PyQt4.uic.port_v3’.as_string – imported by ‘PyQt4.uic.port_v3’, PyQt4.uic.icon_cache

missing module named ‘PyQt4.uic.port_v3’ – imported by PyQt4.uic.icon_cache

missing module named ‘PyQt4.elementtree’.SubEleme

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值