当我尝试从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
答案 0 :(得分:0)
您的系统缺少Visual C++ Redistributable Files,因此您需要根据系统体系结构安装以下某个软件包才能对其进行修复。
下载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 ++版本不同,因为它们每个都有自己的不同的运行时文件,而不与其他版本共享。
有关更多信息,请参见C++ Runtime for Sideloaded Windows 8.1 apps上的the VC++ Team Blog。
下载Microsoft Visual C++ Redistributable Packages for Visual Studio 2012 Update 4。这是Visual Studio 2012最新支持的Visual C ++可再发行组件包。
下载Visual Studio 2010 Service Pack 1 (Installer)。这是Visual Studio 2010最新支持的Visual C ++ Service Pack。
注意
此Web安装程序需要Internet连接。此安装程序将下载并安装Visual Studio 2010 Service Pack1。它适用于Visual Studio 2010的所有版本(Express,Professional,Premium,Ultimate和Test Professional)。
下载Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package MFC Security Update。这是Visual Studio 2010支持的最新的Visual C ++可再发行组件包更新。
Visual Studio 2008已达到end of support on April 10, 2018。为了帮助发现最新的下载内容,当前保留了这些链接,但将来可能会删除它们。
下载Visual Studio 2008 Service Pack 1 (Installer)。这是Visual Studio 2008的最新Visual C ++ Service Pack。此Service Pack改进了响应速度,稳定性和性能。
注意:此下载将安装Visual Studio 2008 Service Pack 1和Microsoft .NET Framework 3.5 SP1。