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 ‘macholib.compat’