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?
Note that Python 3.9.0 cannot be used on Windows 7 or earlier. Note that Python 3.8.6 cannot be used on Windows XP or earlier. Note that Python 3.8.6rc1 cannot be used on Windows XP or earlier.
1 Answer. According to the official Python documentation reports, Python 3.9.
To execute a file in IDLE, simply press the F5 key on your keyboard. You can also select Run → Run Module from the menu bar. Either option will restart the Python interpreter and then run the code that you've written with a fresh interpreter.
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.
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: https://github.com/NulAsh/cpython
Installers: https://github.com/NulAsh/cpython/releases
Another workaround which creates the missing api-ms-win-core-path-l1-1-0.dll
:
https://github.com/nalexandru/api-ms-win-core-path-HACK
Both solutions 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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With