找不到PyInstaller lib [英] PyInstaller lib not found

查看:93
本文介绍了找不到PyInstaller lib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用tkinter制作了一个简单的python [3.5.2]程序。当我在其上使用pyinstaller [3.2]时,会出现大量的找不到库警告。
示例:

I made a simple python[3.5.2] program using tkinter. When I use pyinstaller[3.2] on it it gives me a ton of 'lib not found' warnings. Example:


2999警告:找不到lib:api-ms-win-crt-runtime-l1-1-0 c:\python\python.exe的.dll依赖项

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

3031警告:找不到lib:api-ms-win-crt-heap-l1-1- c:\python\python.exe的0.dll依赖项

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

3218警告:找不到lib:api-ms-win-crt-runtime-l1-1 -0.dll的c:140python\VCRUNTIME140.dll依赖项

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

3312警告:找不到lib:api-ms-win-crt-convert-l1- c:.python dependencyVCRUNTIME140.dll的1-0.dll依赖项

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

6494警告:找不到lib:api-ms-win-crt-heap-l1 -1-0.dll对c:dependencypython\DLLs_hashlib.pyd的依赖性

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

7271警告:找不到lib:api-ms-win-crt-stdio-我使用的c:\python\DLLs\unicodedata.pyd的l1-1-0.dll依赖性

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

.bat文件


@echo off

@echo off

set / p file_name =输入文件名:

set /p file_name="Enter file name: "

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

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

del%file_name%.spec

del %file_name%.spec

rmdir / s / q构建

rmdir /s /q build

echo 。

暂停

我在做什么错?
Windows 10 64bit

What am I doing wrong? Windows 10 64bit

推荐答案

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

Just had this problem myself. The problem is that pyinstaller is not fully compatible Windows 10. The only solution currently is to download the Windows 10 SDK (a 2GB download).

在此处查看更多信息:
https://github.com/pyinstaller/pyinstaller/issues/1566

See more here: https://github.com/pyinstaller/pyinstaller/issues/1566

这篇关于找不到PyInstaller lib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆