PyInstaller WARNING: lib not found

前端 未结 9 1018
隐瞒了意图╮
隐瞒了意图╮ 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 19:16

    When there is a whole slew of WARNINGS coming from pyinstaller about not being able to locate Windows DLLs, you might check to see if they're in one of the two following locations:

    C:\Windows\System32\downlevel
    C:\Windows\SysWOW64\downlevel
    

    You can add one or both to the PATH variable, like so and those warnings should disappear:

    set PATH=%PATH%;C:\Windows\System32\downlevel
    

    I mention this because it's easier than finding and copying the DLLs to a folder on the path like Alex F mentioned. I also noticed some of the DLLs you're unable to locate are in the folders I called out above.

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

    Follow the next steps to solve the "PyInstaller WARNING:lib not found:api-ms-win-crt SOLUTION" problem:

    1. run the following command line in command prompt or windows power-shell
    2. pyinstaller --windowed --paths C:\Windows\System32\downlevel application_name.py

    Additional information can be found here at the MS website.

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

    I found the DLL's in system32/downlevel and syswow64/downlevel and copied all of them to the respective parent folders (system32 and syswow64). Something that Ritesh Singh's command will do. Try a restart after copying if it still does not work.

    0 讨论(0)
提交回复
热议问题