Skip to content

liudonghua123/windows-python-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

windows-python-installer

What's it

A windows python installer repack which is support on windows 7+. This project do the following changes of the official cpython

  • Modify the windows installer, remove os limitation for making the installer to work on windows 7+.
  • Build on Visual Studio 2022 as my local or the default in github actions is Visual Studio 2022.
  • Change the font of pythonXY.chm to 'Microsoft YaHei' as the default looks ugly.
  • Include api-ms-win-core-path-l1-1-0.dll which is from https://github.com/nalexandru/api-ms-win-core-path-HACK in the installer to support running python 3.9+ on windows 7+.

Motivation

I wrote a simple pyqt5 based app which use python 3.10 and packaged via pyinstaller, but the app could not run on windows 7. After some tries, I made it to work on windows 7. Some discussion could be found on https://github.com/orgs/pyinstaller/discussions/6200.

Maybe someone else need to run python 3.9, 3.10 or later versions on their windows 7, so I create this project to help them.

Remarks

In order to run this python 3.9/3.10/3.11 on windows 7, you need windows 7 sp1 and install UCRT which is provided as KB2999226.

For python 3.12, due to use of AddDllDirectory, you need to install KB2533623, see also Microsoft Security Advisory: Insecure library loading could allow remote code execution, adang1345/PythonWin7/Notes.md.

The KB2533623 could not download anymore, so I upload to resources directory.

Reference

License

MIT License

Copyright (c) 2022 liudonghua

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published