PyInstaller WARNING: lib not found

前端 未结 9 1083
隐瞒了意图╮
隐瞒了意图╮ 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.

提交回复
热议问题