失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > python打包程序在win10不能运行 点击无反应_Windows10平台用PyInstaller打成exe程序

python打包程序在win10不能运行 点击无反应_Windows10平台用PyInstaller打成exe程序

时间:2022-01-09 20:11:43

相关推荐

python打包程序在win10不能运行 点击无反应_Windows10平台用PyInstaller打成exe程序

1 pyinstaller -F G:\pythonproject\StimulateTheBattlefield\graphtest.py

2 start cmd /k “G:\python二级\dist\graphtest.exe”

3 报错PyInstaller cannot check for assembly dependencies.

Please install PyWin32 or pywin32-ctypes.

4 pip install pypiwin32

提示已安装Requirement already satisfied: pypiwin32 in c:\python37\lib\site-packages (223)

Requirement already satisfied: pywin32>=223 in c:\python37\lib\site-packages (from pypiwin32) (224)

不知道为什么

日志如下:

warn-graphtest.txt:

This file lists modules PyInstaller was not able to find. This does not

necessarily mean this module is required for running you program. Python and

Python 3rd-party packages include a lot of conditional or optional module. For

example the module ‘ntpath’ only exists on Windows, whereas the module

‘posixpath’ only exists on Posix systems.

Types if import:

top-level: imported at the top-level - look at these first

conditional: imported within an if-statement

delayed: imported from within a function

optional: imported within a try-except-statement

IMPORTANT: Do NOT post this list to the issue-tracker. Use it as a basis for

yourself tracking down the missing module. Thanks!

missing module named ‘multiprocessing.forking’ - imported by c:\python37\lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_multiprocessing.py (optional)

missing module named multiprocessing.get_context - imported by multiprocessing (top-level), multiprocessing.pool (top-level), multiprocessing.managers (top-level), multiprocessing.sharedctypes (top-level)

missing module named multiprocessing.TimeoutError - imported by multiprocessing (top-level), multiprocessing.pool (top-level)

missing module named multiprocessing.BufferTooShort - imported by multiprocessing (top-level), multiprocessing.connection (top-level)

missing module named multiprocessing.AuthenticationError - imported by multiprocessing (top-level), multiprocessing.connection (top-level)

missing module named multiprocessing.set_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)

missing module named multiprocessing.get_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)

missing module named ‘win32com.gen_py’ - imported by win32com (conditional, optional), c:\python37\lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_win32comgenpy.py (top-level)

missing module named pyimod03_importers - imported by PyInstaller.loader.pyimod02_archive (delayed, conditional), c:\python37\lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py (top-level)

missing module named StringIO - imported by PyInstaller.lib.modulegraph._compat (conditional), PyInstaller.lib.modulegraph.zipio (conditional), setuptools._vendor.six (conditional), pkg_resources._vendor.six (conditional), six (conditional), numpy.lib.utils (delayed, conditional), numpy.lib.format (delayed, conditional), numpy.testing._private.utils (conditional), scipy._lib.six (conditional), py._io.capture (optional)

missing module named ‘pkg_resources.extern.pyparsing’ - imported by pkg_resources._vendor.packaging.requirements (top-level), pkg_resources._vendor.packaging.markers (top-level)

missing module named _uuid - imported by uuid (optional)

missing module named builtin - imported by pkg_resources._vendor.pyparsing (conditional), numpy.core.numerictypes (conditional), numpy.core.numeric (conditional), numpy.lib.function_base (conditional), numpy.lib._iotools (conditional), numpy.ma.core (conditional), scipy._lib.six (conditional), numpy.distutils.misc_util (delayed, conditional), numpy (conditional), setuptools._vendor.pyparsing (conditional), py._builtin (conditional)

missing module named ordereddict - imported by pkg_resources._vendor.pyparsing (optional), setuptools._vendor.pyparsing (optional)

missing module named ‘com.sun’ - imported by pkg_resources._vendor.appdirs (delayed, conditional, optional)

missing module named com - imported by pkg_resources._vendor.appdirs (delayed)

missing module named _scproxy - imported by urllib.request (conditional)

missing module named ‘pat’ - imported by macholib.MachO (optional)

missing module named _pkgutil - imported by PyInstaller.lib.modulegraph.modulegraph (delayed, optional)

missing module named xdis - imported by PyInstaller.lib.modulegraph._compat (conditional)

missing module named dis3 - imported by PyInstaller.lib.modulegraph._compat (conditional)

missing module named urllib.pathname2url - imported by urllib (conditional), PyInstaller.lib.modulegraph._compat (conditional)

missing module named pyimod00_crypto_key - imported by PyInstaller.loader.pyimod02_archive (delayed, optional)

missing module named thread - imported by cffi.lock (conditional, optional), cffi.cparser (conditional, optional), PyInstaller.loader.pyimod02_archive (conditional), numpy.core.arrayprint (conditional, optional)

missing module named Crypto - imported by PyInstaller.building.makespec (delayed, conditional, optional)

missing module named win32ctypes.core._time - imported by win32ctypes.core (top-level), win32ctypes.pywin32.win32api (top-level)

missing module named win32ctypes.core._system_information - imported by win32ctypes.core (top-level), win32ctypes.pywin32.win32api (top-level)

missing module named win32ctypes.core._resource - imported by win32ctypes.core (top-level), win32ctypes.pywin32.win32api (top-level)

missing module named win32ctypes.core._dll - imported by win32ctypes.core (top-level), win32ctypes.pywin32.win32api (top-level)

missing module named win32ctypes.core._common - imported by win32ctypes.core (top-level), win32ctypes.pywin32.win32api (top-level), win32ctypes.pywin32.win32cred (top-level)

missing module named win32ctypes.core._authentication - imported by win32ctypes.core (top-level), win32ctypes.pywin32.win32cred (top-level)

missing module named testing - imported by cffi.recompiler (delayed)

missing module named dummy_thread - imported by cffi.lock (conditional, optional), numpy.core.arrayprint (conditional, optional)

runtime module named setuptools.extern.six.moves - imported by setuptools.dist (top-level), setuptools.py33compat (top-level), mand.easy_install (top-level), setuptools.sandbox (top-level), mand.setopt (top-level), setuptools.package_index (top-level), setuptools.ssl_support (top-level), mand.egg_info (top-level), mand.py36compat (top-level), setuptools.msvc (top-level), setuptools.namespaces (top-level), ‘setuptools._vendor.six.moves’ (top-level)

missing module named setuptools.extern.six.moves.filterfalse - imported by setuptools.extern.six.moves (top-level), setuptools.dist (top-level), setuptools.msvc (top-level)

missing module named setuptools.extern.six.moves.filter - imported by setuptools.extern.six.moves (top-level), setuptools.dist (top-level), setuptools.ssl_support (top-level), mand.py36compat (top-level)

missing module named setuptools.extern.six.moves.map - imported by setuptools.extern.six.moves (top-level), setuptools.dist (top-level), mand.easy_install (top-level), setuptools.sandbox (top-level), setuptools.package_index (top-level), setuptools.ssl_support (top-level), mand.egg_info (top-level), setuptools.namespaces (top-level)

missing module named setuptools.extern.six - imported by setuptools.extern (top-level), setuptools.monkey (top-level), setuptools.dist (top-level), setuptools.extern.six.moves (top-level), setuptools.py33compat (top-level), setuptools.config (top-level), mand.easy_install (top-level), setuptools.sandbox (top-level), setuptools.py27compat (top-level), setuptools.package_index (top-level), setuptools.wheel (top-level), mand.egg_info (top-level), mand.sdist (top-level), mand.bdist_egg (top-level), setuptools.unicode_utils (top-level), setuptools.glob (top-level), mand.develop (top-level)

missing module named setuptools.extern.packaging - imported by setuptools.extern (top-level), setuptools.dist (top-level), mand.egg_info (top-level)

missing module named ‘setuptools._vendor.six.moves’ - imported by ‘setuptools._vendor.six.moves’ (top-level)

missing module named ‘setuptools.extern.pyparsing’ - imported by setuptools._vendor.packaging.markers (top-level), setuptools._vendor.packaging.requirements (top-level)

missing module named commands - imported by numpy.distutils.cpuinfo (conditional)

missing module named ‘numpy_distutils.cpuinfo’ - imported by numpy.f2py.diagnose (delayed, conditional, optional)

missing module named ‘numpy_distutils.fcompiler’ - imported by numpy.f2py.diagnose (delayed, conditional, optional)

missing module named ‘mand’ - imported by numpy.f2py.diagnose (delayed, conditional, optional)

missing module named numpy_distutils - imported by numpy.f2py.diagnose (delayed, optional)

missing module named svn_version - imported by numpy.f2py.version (optional)

missing module named numarray - imported by numpy.distutils.system_info (delayed, conditional, optional)

missing module named Numeric - imported by numpy.distutils.system_info (delayed, conditional, optional)

missing module named ConfigParser - imported by numpy.distutils.system_info (conditional), numpy.distutils.npy_pkg_config (conditional)

missing module named _curses - imported by curses (top-level), curses.has_key (top-level)

missing module named _dummy_threading - imported by dummy_threading (optional)

missing module named py.process - imported by py (top-level), py._path.svnurl (top-level)

missing module named py.path - imported by py (top-level), py._path.svnurl (top-level)

missing module named apipkg - imported by py (optional)

missing module named six.moves.zip - imported by six.moves (top-level), more_itertools.more (top-level), more_itertools.recipes (top-level), _pytest.python_api (top-level)

missing module named six.moves.range - imported by six.moves (top-level), more_itertools.more (top-level), more_itertools.recipes (top-level)

missing module named six.moves.map - imported by six.moves (top-level), _pytest.pathlib (top-level), more_itertools.more (top-level), more_itertools.recipes (top-level)

missing module named six.moves.filterfalse - imported by six.moves (top-level), more_itertools.recipes (top-level), _pytest.python_api (top-level)

missing module named six.moves.filter - imported by six.moves (top-level), more_itertools.more (top-level), more_itertools.recipes (top-level)

runtime module named six.moves - imported by _pytest._io.saferepr (top-level), _pytest.pathlib (top-level), more_itertools.more (top-level), more_itertools.recipes (top-level), _pytest.python_api (top-level)

missing module named pathlib2 - imported by _pytest.pathlib (conditional)

missing module named urllib.urlencode - imported by urllib (delayed, conditional), _pytest.pastebin (delayed, conditional)

missing module named urllib.urlopen - imported by urllib (delayed, conditional), _pytest.pastebin (delayed, conditional)

missing module named fcntl - imported by atomicwrites (optional), py._io.terminalwriter (delayed, conditional)

missing module named argcomplete - imported by _pytest._argcomplete (conditional, optional)

missing module named urllib.quote - imported by urllib (delayed), py._path.svnwc (delayed)

missing module named syslog - imported by py._log.log (delayed, optional)

missing module named ‘py.builtin’ - imported by py._io.terminalwriter (top-level)

missing module named compiler - imported by py._code._assertionold (top-level)

missing module named sets - imported by py._builtin (optional)

missing module named ‘py.io’ - imported by pat (conditional)

missing module named funcsigs - imported by pat (conditional)

missing module named ‘nose.plugins’ - imported by numpy.testing._private.noseclasses (top-level), numpy.testing._private.nosetester (delayed)

missing module named psutil - imported by scipy._lib._testutils (delayed, optional)

missing module named cPickle - imported by pycparser.ply.yacc (delayed, optional), numpy.core.numeric (conditional)

missing module named copy_reg - imported by cPickle (top-level), cStringIO (top-level), numpy.core (conditional)

missing module named pickle5 - imported by numpy.core.numeric (conditional, optional)

missing module named numpy.random.randn - imported by numpy.random (top-level), scipy (top-level)

missing module named numpy.random.rand - imported by numpy.random (top-level), scipy (top-level)

missing module named ‘nose.util’ - imported by numpy.testing._private.noseclasses (top-level)

missing module named nose - imported by numpy.testing._private.utils (delayed, optional), numpy.testing._private.decorators (delayed), numpy.testing._private.noseclasses (top-level)

missing module named numpy.core.number - imported by numpy.core (delayed), numpy.testing._private.utils (delayed)

missing module named numpy.core.signbit - imported by numpy.core (delayed), numpy.testing._private.utils (delayed)

missing module named numpy.core.float64 - imported by numpy.core (delayed), numpy.testing._private.utils (delayed)

missing module named numpy.core.float32 - imported by numpy.core (top-level), numpy.testing.private.utils (top-level)

missing module named numpy.lib.i0 - imported by numpy.lib (top-level), numpy.dual (top-level)

missing module named numpy.core.integer - imported by numpy.core (top-level), numpy.fft.helper (top-level)

missing module named numpy.core.sqrt - imported by numpy.core (top-level), numpy.linalg.linalg (top-level), numpy.fft.fftpack (top-level)

missing module named numpy.core.conjugate - imported by numpy.core (top-level), numpy.fft.fftpack (top-level)

missing module named numpy.core.divide - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)

missing module named numpy.core.object - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)

missing module named numpy.core.intp - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)

missing module named numpy.core.geterrobj - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)

missing module named numpy.core.add - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)

missing module named plexfloating - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)

missing module named numpy.core.inexact - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)

missing module named numpy.core.cdouble - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)

missing module named numpy.core.csingle - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)

missing module named numpy.core.double - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)

missing module named numpy.core.single - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)

missing module named future_builtins - imported by numpy.lib.npyio (conditional)

missing module named urllib2 - imported by numpy.lib._datasource (delayed, conditional)

missing module named urlparse - imported by numpy.lib.datasource (delayed, conditional)

missing module named numpy.recarray - imported by numpy (top-level), numpy.ma.mrecords (top-level)

missing module named numpy.dtype - imported by numpy (top-level), numpy.ma.mrecords (top-level), numpy.ctypeslib (top-level)

missing module named numpy.expand_dims - imported by numpy (top-level), numpy.ma.core (top-level)

missing module named numpy.array - imported by numpy (top-level), numpy.ma.core (top-level), numpy.ma.extras (top-level), numpy.ma.mrecords (top-level), numpy.ctypeslib (top-level)

missing module named numpy.bool - imported by numpy (top-level), numpy.ma.core (top-level), numpy.ma.mrecords (top-level)

missing module named numpy.iscomplexobj - imported by numpy (top-level), numpy.ma.core (top-level)

missing module named numpy.amin - imported by numpy (top-level), numpy.ma.core (top-level)

missing module named numpy.amax - imported by numpy (top-level), numpy.ma.core (top-level)

missing module named numpy.ndarray - imported by numpy (top-level), numpy.ma.core (top-level), numpy.ma.extras (top-level), numpy.ma.mrecords (top-level), numpy.ctypeslib (top-level)

missing module named numpy.histogramdd - imported by numpy (delayed), numpy.lib.twodim_base (delayed)

missing module named numpy.eye - imported by numpy (delayed), numpy.core.numeric (delayed)

missing module named ‘setuptools.extern.packaging.version’ - imported by setuptools.msvc (top-level)

missing module named _manylinux - imported by setuptools.pep425tags (delayed, optional)

missing module named wincertstore - imported by setuptools.ssl_support (delayed, optional)

missing module named ‘backports.ssl_match_hostname’ - imported by setuptools.ssl_support (optional)

missing module named backports - imported by setuptools.ssl_support (optional)

missing module named ‘setuptools.extern.six’ - imported by setuptools (top-level), setuptools.extension (top-level)

missing module named cStringIO - imported by cPickle (top-level), cffi.ffiplatform (optional)

missing module named cffi._pycparser - imported by cffi (optional), cffi.cparser (optional)

missing module named UserDict - imported by pat (conditional), attr._compat (conditional)

missing module named pkg_resources.extern.packaging - imported by pkg_resources.extern (top-level), pkg_resources (top-level)

missing module named pkg_resources.extern.appdirs - imported by pkg_resources.extern (top-level), pkg_resources (top-level)

missing module named ‘pkg_resources.extern.six.moves’ - imported by pkg_resources (top-level), pkg_resources._vendor.packaging.requirements (top-level)

missing module named pkg_resources.extern.six - imported by pkg_resources.extern (top-level), pkg_resources (top-level)

missing module named resource - imported by posix (top-level), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level)

missing module named posix - imported by os (conditional, optional), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level)

missing module named _posixsubprocess - imported by subprocess (conditional), multiprocessing.util (delayed), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level)

missing module named readline - imported by cmd (delayed, conditional, optional), code (delayed, conditional, optional), pdb (delayed, optional), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level), _pytest.capture (delayed, optional)

excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional), PyInstaller.loader.pyimod02_archive (delayed, conditional), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level)

missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level)

missing module named _winreg - imported by platform (delayed, optional), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level), pkg_resources._vendor.appdirs (delayed), numpy.distutils.cpuinfo (delayed, conditional, optional)

missing module named java - imported by platform (delayed), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level)

missing module named ‘java.lang’ - imported by platform (delayed, optional), xml.sax._exceptions (conditional), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level)

missing module named vms_lib - imported by platform (delayed, conditional, optional), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level)

missing module named termios - imported by tty (top-level), getpass (optional), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level), py._io.terminalwriter (delayed, conditional)

missing module named grp - imported by shutil (optional), tarfile (optional), distutils.archive_util (optional), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level), pathlib (delayed), py._path.local (delayed)

missing module named org - imported by pickle (optional), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level)

missing module named ‘org.python’ - imported by copy (optional), xml.sax (delayed, conditional), setuptools.sandbox (conditional), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level)

missing module named pwd - imported by posixpath (delayed, conditional), shutil (optional), tarfile (optional), http.server (delayed, optional), webbrowser (delayed), distutils.util (delayed, conditional), distutils.archive_util (optional), netrc (delayed, conditional), getpass (delayed), G:\pythonproject\StimulateTheBattlefield\graphtest.py (top-level), pathlib (delayed, conditional, optional), py._path.local (delayed)

python打包程序在win10不能运行 点击无反应_Windows10平台用PyInstaller打成exe程序后不能运行请高手指点...

如果觉得《python打包程序在win10不能运行 点击无反应_Windows10平台用PyInstaller打成exe程序》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。