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

在Windows10上使用PyInstaller打包Python程序后,遇到程序无法运行的问题。尝试安装PyWin32或pywin32-ctypes,但已显示已安装。日志显示多个模块缺失,包括multiprocessing、win32com等。尝试解决这些依赖问题以修复程序。
摘要由CSDN通过智能技术生成

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’

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值