Reputation: 201
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:
What can I do to run this program on Windows 7?
Upvotes: 19
Views: 17464
Reputation: 2727
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/
Fork of CPython:
Installers:
Another workaround which creates the missing api-ms-win-core-path-l1-1-0.dll
:
Both solutions above use code from the Wine project to emulate missing functions (PathCchCanonicalizeEx, PathCchCombineEx, PathCchSkipRoot) on Windows 7.
Unofficial Python Installers for Windows 7 and Windows Server 2003 R2.
Include the file api-ms-win-core-path-l1-1-0.dll
in the distribution obtained from https://github.com/nalexandru/api-ms-win-core-path-HACK
:
Unofficial Python Installers for Windows.
These installers were built from the source distributions published at https://www.python.org/downloads/source/, patched to fix some bugs in the build scripts and to include debugging symbols and debug binaries:
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
.
Upvotes: 15
Reputation: 4680
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.
Upvotes: 11