gpt4 book ai didi

python - Pyinstaller 警告 :lib not found: api-ms-win-core-path-l1-1-0. dll 依赖 c :\users\ymzym\appdata\local\programs\python\python39-32\python39. dll

转载 作者:行者123 更新时间:2023-12-04 11:44:03 37 4
gpt4 key购买 nike

我被跑了pyinstaller --onedir --icon="Ico.ico Encrypt.py命令,但没有成功。我必须将我的 Python 项目转换为 32 位 exe 文件,因为我也想让我的程序与 Windows XP SP3 一起工作,所以我有 Python 3.9.3(32 位)。我尝试修复 Python,但没有任何意义。谁能帮我?
这是pyinstaller的日志:它停止任务并在14546 INFO: Analyzing C:\Users\ymzym\PyCharmProjects\YLMZ 3.0\Encrypt.py之后返回cmd

218 INFO: Python: 3.9.3
218 INFO: Platform: Windows-10-10.0.21343-SP0
218 INFO: wrote C:\Users\ymzym\PyCharmProjects\YLMZ 3.0\Encrypt.spec
234 INFO: UPX is not available.
234 INFO: Extending PYTHONPATH with paths
['C:\\Users\\ymzym\\PyCharmProjects\\YLMZ 3.0',
'C:\\Users\\ymzym\\PyCharmProjects\\YLMZ 3.0']
281 INFO: checking Analysis
281 INFO: Building Analysis because Analysis-00.toc is non existent
281 INFO: Initializing module dependency graph...
297 INFO: Caching module graph hooks...
328 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
355 INFO: Analyzing base_library.zip ...
6360 INFO: Processing pre-find module path hook distutils from 'c:\\users\\ymzym\\appdata\\local\\programs\\python\\python39-32\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
6360 INFO: distutils: retargeting to non-venv dir 'c:\\users\\ymzym\\appdata\\local\\programs\\python\\python39-32\\lib'
13760 INFO: Caching module dependency graph...
14074 INFO: running Analysis Analysis-00.toc
14169 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\ymzym\appdata\local\programs\python\python39-32\python.exe
14488 WARNING: lib not found: api-ms-win-core-path-l1-1-0.dll dependency of c:\users\ymzym\appdata\local\programs\python\python39-32\python39.dll
14546 INFO: Analyzing C:\Users\ymzym\PyCharmProjects\YLMZ 3.0\Encrypt.py

最佳答案

我通过完全卸载 Python 3.9 32 位并安装 Python 3.9 64 位解决了这个问题,然后再次安装了 Python 3.9 32 位。

关于python - Pyinstaller 警告 :lib not found: api-ms-win-core-path-l1-1-0. dll 依赖 c :\users\ymzym\appdata\local\programs\python\python39-32\python39. dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66991475/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com