从Python文件“未找到lib”创建.exe

时间:2019-04-29 16:08:11

标签: python pyqt

当我尝试从python文件创建可执行文件时,会收到很多警告(请参见下面的代码)。

我在很多论坛上都发现它可能与“ Microsoft C ++ 2015”有关,因此我重新安装了它,但是它不起作用。 我尝试了很多解决方案,例如上载可自动创建可执行文件的软件等。

您有什么建议要建议我吗? PS:我正在使用pyinstaller,pyqt5和python36。

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

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

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

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

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

8167 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\python36\VCRUNTIME140.dll

8364 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\python36\VCRUNTIME140.dll

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

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

8960 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\python36\VCRUNTIME140.dll

9177 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\python36\python36.dll

9372 WARNING: lib not found: api-ms-win-crt-process-l1-1-0.dll dependency of c:\python36\python36.dll

9567 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of c:\python36\python36.dll

9773 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\python36\python36.dll

9960 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\python36\python36.dll

10162 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\python36\python36.dll

10360 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\python36\python36.dll

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

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

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

11187 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\python36\python36.dll

11377 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\python36\python36.dll

1 个答案:

答案 0 :(得分:0)

您的系统缺少Visual C++ Redistributable Files,因此您需要根据系统体系结构安装以下某个软件包才能对其进行修复。


最新支持的Visual C ++下载

Visual Studio 2015、2017和2019


下载Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019。以下更新是Visual Studio 2015、2017和2019最新支持的Visual C ++可再发行组件包。其中包括Universal C Runtime的基准版本。有关详细信息,请参见MSDN

注意:Visual C ++ 2015、2017和2019共享相同的可再发行文件。

例如,安装Visual C ++ 2019可再发行组件也会影响使用Visual C ++ 2015和2017生成的程序。但是,安装Visual C ++ 2015可再发行组件将不会替换Visual C ++ 2017和2019可再发行组件所安装文件的较新版本。

这与所有以前的Visual C ++版本不同,因为它们每个都有自己的不同的运行时文件,而不与其他版本共享。

Visual Studio 2013(VC ++ 12.0)


有关更多信息,请参见C++ Runtime for Sideloaded Windows 8.1 apps上的the VC++ Team Blog

Visual Studio 2012(VC ++ 11.0)


下载Microsoft Visual C++ Redistributable Packages for Visual Studio 2012 Update 4。这是Visual Studio 2012最新支持的Visual C ++可再发行组件包。

Visual Studio 2010(VC ++ 10.0)SP1


Visual Studio 2008(VC ++ 9.0)SP1



Source