python - 找不到 PyInstaller 库

标签 python python-3.x dll tkinter pyinstaller

我使用 tkinter 制作了一个简单的 python[3.5.2] 程序。当我在上面使用 pyinstaller[3.2] 时,它给了我大量的“lib not found”警告。 示例:

2999 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\python\python.exe

3031 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\python\python.exe

3218 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\python\VCRUNTIME140.dll

3312 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\python\VCRUNTIME140.dll

6494 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\python\DLLs_hashlib.pyd

7271 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\python\DLLs\unicodedata.pyd

我用来制作可执行文件的.bat文件是

@echo off

set /p file_name="Enter file name: "

pyinstaller %0..\%file_name%\%file_name%.py --onefile --windowed --distpath %0..\%file_name% --name=%file_name%

del %file_name%.spec

rmdir /s /q build

echo.

pause

我做错了什么? Windows 10 64位

最佳答案

我自己也遇到了这个问题。问题在于pyinstaller与Windows 10不完全兼容。目前唯一的解决方案是下载Windows 10 SDK(2GB下载)。

在这里查看更多内容: https://github.com/pyinstaller/pyinstaller/issues/1566

关于python - 找不到 PyInstaller 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39687975/

相关文章:

python - 使用 Python 创建 JSON

python - 有条件地设置 Pandas 数据框列值

python - 在 python 中添加年份

java - 无法在 Play 项目中加载库 'libtesseract302'

Python MD5 破解程序 "TypeError: object supporting the buffer API required"

python - 使用 cupy 时内存不足

python - 为什么我的python程序总是显示相反的 react

python - 属性错误 : module 'tensorflow' has no attribute 'get_variable'

c++ - 通过 C++ 软件上的 C 接口(interface)传递/接收字符串

linux - dll 中的静态变量进入进程内部的哪个段?