有谁用过 Pyinstaller,用一个脚本包含 Pmw,numpy,matplot,tkintertable 的包,然后是一个 TKinter GUI 界面的成一个程序,打包后,一闪而过,是怎么回事?求解脱,烦躁了一天了

2014-03-07 18:15:57 +08:00
 Matrix24
打包指令加了 -w -F -P跟上了以上所有包的lib地址,然后总是运行不起来
5680 次点击
所在节点    Python
3 条回复
unfurl
2014-03-07 21:40:13 +08:00
报错信息是?
Matrix24
2014-03-12 18:52:46 +08:00
@unfurl
[Warn信息]:

W: no module named matplotlib.rcParams (top-level import by matplotlib.figure)
W: no module named glib.Idle (top-level import by gobject)
W: no module named nt (conditional import by __main__)
W: no module named numpy.not_equal (top-level import by numpy.numarray.ufuncs)
W: no module named setuptools.Command (top-level import by setuptools.command.setopt)
W: no module named numpy.testing.Tester (top-level import by numpy.polynomial)
W: no module named numpy.compat.formatargspec (top-level import by numpy.ma.core)
W: no module named glib.Source (top-level import by gobject)
W: no module named numpy.testing.Tester (top-level import by numpy.random)
W: no module named msvcrt (conditional import by getpass)
W: no module named java (conditional import by xml.sax._exceptions)
W: no module named numpy.core.ravel (top-level import by numpy.linalg.linalg)
W: no module named numpy.core.atleast_3d (top-level import by numpy.lib.shape_base)
W: no module named matplotlib.MatplotlibDeprecationWarning (top-level import by matplotlib.legend)
W: no module named numpy.core.zeros (delayed import by numpy.testing.utils)
W: no module named numpy.compat.bytes (top-level import by numpy.core.numerictypes)
W: no module named setuptools.Command (top-level import by setuptools.command.easy_install)
W: no module named numpy.core.flatnonzero (top-level import by numpy.linalg.linalg)
W: no module named numpy.tanh (top-level import by numpy.numarray.ufuncs)
W: no module named PyQt4._qt (top-level import by PyQt4.QtCore)
W: no module named numpy.sinh (top-level import by numpy.numarray.ufuncs)
W: no module named glib.SPAWN_LEAVE_DESCRIPTORS_OPEN (top-level import by gobject)
W: no module named numpy.core.isscalar (delayed import by numpy.testing.utils)
W: no module named numpy.left_shift (top-level import by numpy.oldnumeric.ufuncs)
W: no module named Pyrex (delayed, conditional import by numpy.distutils.command.build_src)
W: no module named matplotlib.backends.pylab_setup (top-level import by matplotlib.pyplot)
W: no module named numpy.subtract (top-level import by numpy.numarray.ufuncs)
W: no module named matplotlib.rcParams (top-level import by matplotlib.ticker)
W: no module named numpy.arcsin (top-level import by numpy.numarray.ufuncs)
W: no module named numpy.lexsort (top-level import by numpy.numarray.functions)
W: no module named numpy.core.intc (top-level import by numpy.linalg.linalg)
W: no module named numpy.ndarray (top-level import by numpy.ma.extras)
W: no module named numpy.greater_equal (top-level import by numpy.oldnumeric.ufuncs)
W: no module named numpy.logical_not (top-level import by numpy.oldnumeric.ufuncs)
W: no module named Carbon (delayed import by plistlib)
W: no module named matplotlib.rcParams (top-level import by matplotlib.axis)
W: no module named _winreg (top-level import by distutils.msvccompiler)
W: no module named numpy.swapaxes (top-level import by numpy.oldnumeric.misc)
W: no module named numpy.diagonal (top-level import by numpy.numarray.functions)
W: no module named matplotlib.delaunay.__version__ (delayed, conditional import by matplotlib.mlab)
W: no module named numpy.arccos (top-level import by numpy.numarray.ufuncs)
W: no module named numpy.core.hstack (top-level import by numpy.lib.polynomial)
W: no module named numpy.sinh (top-level import by numpy.oldnumeric.ufuncs)
W: no module named numpy.core.max (conditional import by numpy)
W: no module named numpy.distutils.fcompiler.show_fcompilers (delayed import by numpy.distutils.interactive)
W: no module named numpy.core.concatenate (top-level import by numpy.fft.helper)
W: no module named numpy.arcsinh (top-level import by numpy.numarray.ufuncs)
W: no module named numpy.linalg.lstsq (top-level import by numpy.lib.polynomial)
W: no module named numpy.greater (top-level import by numpy.oldnumeric.ufuncs)
W: no module named numpy.core.atleast_2d (top-level import by numpy.lib.function_base)
W: no module named vms_lib (delayed, conditional import by platform)
W: no module named glib.set_application_name (top-level import by gobject)
W: no module named numpy.floor_divide (top-level import by numpy.numarray.ufuncs)
W: no module named numpy.testing.Tester (conditional import by numpy.distutils)
W: no module named numpy.less (top-level import by numpy.oldnumeric.ufuncs)
W: no module named matplotlib.rcParamsDefault (top-level import by matplotlib.pyplot)
W: no module named numpy_distutils (delayed, conditional import by numpy.f2py.diagnose)
W: no module named glib.MainContext (top-level import by gobject)
W: no module named numpy.ndarray (top-level import by numpy.ma.mrecords)
W: no module named matplotlib.rcParams (top-level import by matplotlib.text)
W: no module named numpy.eye (delayed import by numpy.core.numeric)
W: no module named numpy.searchsorted (top-level import by numpy.numarray.functions)
W: no module named numpy.core.
maoyusu
2014-03-21 11:31:21 +08:00
用WinPython试一试

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/103307

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX