Search code examples
pythondllpyinstallerexewindows-xp

Python .exe for XP


I am having some problems when I try to build a .exe app for windows XP.

I have tried several different "solutions" for this problem.

The OS I am using is windows 11.

First I created a virtual env with anaconda and installed python 3.4.3. Then I compiled a simple program using py2exe. The error I got is a missing "ddl", namely msvcr100.dll. I could not find a solution for this problem, since the visual studio versions I have installed are newer. Another problem with this approach is that I am not able to install packages which are used in the script, for example opencv and numpy.

Next I installed python 3.7.9 32 bit. The error I got there is:

The procedure entry point GetFinalPathNameByHandleW could not be located in the dynamic link library KERNEL32.dll

Does someone know which of those two different approach will be better to continue to try? And does someone have a solution for the missing dll's?


Solution

  • Starting with Python 3.5.0 Windows XP is no longer supported and you will see a bold

    Note that Python 3.5.0 cannot be used on Windows XP or earlier.

    notice on the Python Releases for Windows page

    The latest supported version is 3.4.3

    See also: https://python.readthedocs.io/en/latest/using/windows.html#supported-versions

    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.7 supports Windows Vista and newer. If you require Windows XP support then please install Python 3.4.