别人遇到的: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