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
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.
Follow the next steps to solve the "PyInstaller WARNING:lib not found:api-ms-win-crt SOLUTION" problem:
Additional information can be found here at the MS website.
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.