PyInstaller WARNING: lib not found

前端 未结 9 1017
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 18:14

I know this type of question has been asked here before, but I did not find a working solution to it. I have a python file which I want to convert to an exe on Windows 10. I

相关标签:
9条回答
  • 2020-12-01 18:53

    I just added the path in the environmental variable, it worked for me.

    C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x64

    (or)

    C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x86

    0 讨论(0)
  • 2020-12-01 18:54

    For some reason it threw a NameError when importing ctypes, adding this line to the pyinstaller command solved the issue: --hidden-import ctypes

    0 讨论(0)
  • 2020-12-01 18:58

    You'll need to install one of the Visual C++ packages bellow according to your system architecture.


    The latest supported Visual C++ downloads

    Visual Studio 2015, 2017 and 2019


    Download the Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019. The following updates are the latest supported Visual C++ redistributable packages for Visual Studio 2015, 2017 and 2019. Included is a baseline version of the Universal C Runtime see MSDN for details.

    • x86: vc_redist.x86.exe

    • x64: vc_redist.x64.exe

    Note Visual C++ 2015, 2017 and 2019 all share the same redistributable files.

    For example, installing the Visual C++ 2019 redistributable will affect programs built with Visual C++ 2015 and 2017 also. However, installing the Visual C++ 2015 redistributable will not replace the newer versions of the files installed by the Visual C++ 2017 and 2019 redistributables.

    This is different from all previous Visual C++ versions, as they each had their own distinct runtime files, not shared with other versions.

    Visual Studio 2013 (VC++ 12.0)


    • Download the Microsoft Visual C++ Redistributable Packages for Visual Studio 2013. This is the latest supported Visual C++ redistributable package for Visual Studio 2013.
    • Download Multibyte MFC Library for Visual Studio 2013. This add-on for Visual Studio 2013 contains the multibyte character set (MBCS) version of the Microsoft Foundation Class (MFC) Library.
    • Download Visual C++ 2013 Runtime for Sideloaded Windows 8.1 apps.

    For more information, see C++ Runtime for Sideloaded Windows 8.1 apps on the VC++ Team Blog.

    Visual Studio 2012 (VC++ 11.0)


    Download the Microsoft Visual C++ Redistributable Packages for Visual Studio 2012 Update 4. This is the latest supported Visual C++ redistributable package for Visual Studio 2012.

    Visual Studio 2010 (VC++ 10.0) SP1


    • Download the Visual Studio 2010 Service Pack 1 (Installer). This is the latest supported Visual C++ service pack for Visual Studio 2010.

      Note

      This web installer requires an internet connection. This installer downloads and installs Visual Studio 2010 Service Pack 1. It works for all editions of Visual Studio 2010 (Express, Professional, Premium, Ultimate, and Test Professional).

    • Download the Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package MFC Security Update. This is the latest supported Visual C++ redistributable package update for Visual Studio 2010.

    Visual Studio 2008 (VC++ 9.0) SP1


    • Visual Studio 2008 reached end of support on April 10, 2018. To aid the discovery of the latest downloads, the links are retained currently, but may be removed in the future.

    • Download the Visual Studio 2008 Service Pack 1 (Installer). This is the latest Visual C++ service pack for Visual Studio 2008. This service pack improved responsiveness, stability, and performance.
      Note This download installs Visual Studio 2008 Service Pack 1 and Microsoft .NET Framework 3.5 SP1.

    • Download the Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package MFC Security Update. This is the latest Visual C++ redistributable package update for Visual Studio 2008.

    Source

    0 讨论(0)
  • 2020-12-01 19:00

    I ran into this issue and none of the documented pyinstaller fix actions worked. I was able to resolve this by downloading the DLLs (I got them from the SDK package) and copying them into system32 and sysWOW64. All programs are now backwards compatible!

    0 讨论(0)
  • 2020-12-01 19:09

    26095 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\user\appdata\local\programs\python\python36-32\DLLs\select.pyd

    Search in C: drive for dll and set the path in pyinstaller command. The below command fixed the above pyinstaller error in windows 10:

    pyinstaller --paths C:\Windows\WinSxS\x86_microsoft-windows-m..namespace-downlevel_31bf3856ad364e35_10.0.17134.1_none_50c6cb8431e7428f hello.py
    
    0 讨论(0)
  • 2020-12-01 19:13

    Note that as of 4/3/2019 the current dev version of pyinstaller 3.5 does not show these warnings. (3.5.dev0+g8c27d266)

    pip install git+https://github.com/pyinstaller/pyinstaller.git
    
    0 讨论(0)
提交回复
热议问题