Software based on Python 3.9 is not working on Windows 7

Question:

I made a standalone software using python3.9 which properly works on my system and another windows 10 system also, but I tried running that software on Windows 7 Ultimate and it shows some errors.
Please note that I made the software by binding all the required python modules using PyInstaller.
Those errors are as follows:

  1. Error loading Python DLL
    ‘C:UsershpAppDataLocalTemp_MEI19602python39.dll’.
    LoadLibrary: The specified module could not be found.
  2. The program can’t start because api-ms-win-core-path-l1-1-0.dll is missing from your computer. Try
    reinstalling the program to fix this problem.

What can I do to run this program on Windows 7?

Asked By: Tushar Agarwal

||

Answers:

If you check out the Python documentation, you will see that Python 3.9 is not supported on Windows 7:

As specified in PEP 11, a Python release only supports a Windows platform while Microsoft considers the platform under extended support. This means that Python 3.9 supports Windows 8.1 and newer. If you require Windows 7 support, please install Python 3.8.

You can read more here.

Answered By: Jacob Lee

Times has come and may be you should learn how to build from the source:

Discussion:
https://www.reddit.com/r/Python/comments/rbhd2n/python_39_310_on_windows_7/

Both solutions above use code from the Wine project to emulate missing functions (PathCchCanonicalizeEx, PathCchCombineEx, PathCchSkipRoot) on Windows 7.

PS:

Errors around api-ms-win-core-path-l1-1-0.dll and a such basically requires to install a particular vcredist_x86.exe/vcredist_x64.exe. But specifically that error in the Python 3.9 is because the DLL is a part of windows 8.

Answered By: Andry