# Why is there no Python3.11 for Windows7?

**URL:** <https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443>\
**Category:** Python Help\
**Created:** [March 3, 2023, 11:26am UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443 "2023-03-03T11:26:41Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecxod](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/ecxod/32/11358_2.png) [@ecxod](https://discuss.python.org/u/ecxod)\
**Post date:** [March 3, 2023, 11:26am UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/1 "2023-03-03T11:26:41Z")

</div>

I have a huge problem. Why is there no Python after 3.8 for Windows7?

---

<div class="post-metadata">

**Author:** ![ericvsmith](https://avatars.discourse-cdn.com/v4/letter/e/34f0e0/32.png) [@ericvsmith](https://discuss.python.org/u/ericvsmith)\
**Post date:** [March 3, 2023, 11:33am UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/2 "2023-03-03T11:33:49Z")

</div>

See [https://docs.python.org/3/using/windows.html:](https://docs.python.org/3/using/windows.html:) “As specified in [**PEP 11**](https://peps.python.org/pep-0011/), a Python release only supports a Windows platform while Microsoft considers the platform under extended support. This means that Python 3.11 supports Windows 8.1 and newer. If you require Windows 7 support, please install Python 3.8.”

You can find some options here: [Software based on Python 3.9 is not working on Windows 7 - Stack Overflow](https://stackoverflow.com/questions/66718131/software-based-on-python-3-9-is-not-working-on-windows-7). Note these are not supported by the CPython community.

---

<div class="post-metadata">

**Author:** ![Rosuav](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/rosuav/32/3429_2.png) [@Rosuav](https://discuss.python.org/u/Rosuav)\
**Post date:** [March 3, 2023, 11:44am UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/3 "2023-03-03T11:44:10Z")

</div>

I have three solutions for you.

1. Use Python 3.8 on Windows 7 and accept that some Python programs won’t work
2. Upgrade to a supported version of Windows and then install a newer Python into that
3. Upgrade to Debian Linux.

All of them have consequences. It’s your job to decide which one solves the most problems while creating the fewest. Without any further information about what your problem IS, all we can do is answer the simple part of your question: There is no Python 3.11 for Windows 7 because Microsoft no longer supports Windows 7, and the policy is to build for the Windowses that are actually supported.

---

<div class="post-metadata">

**Author:** ![CAM-Gerlach](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cam-gerlach/32/3688_2.png) [@CAM-Gerlach](https://discuss.python.org/u/CAM-Gerlach)\
**Post date:** [March 3, 2023, 12:13pm UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/4 "2023-03-03T12:13:34Z")

</div>

I don’t have the permissions to fix it currently, but the `Packaging` category isn’t the right place for this, as it is about packaging Python projects; this should be in the `Python Help` category instead.

Already discussed here among other threads

> [@Windows 7 support for Python 3.9 or 3.10, without a fork](https://discuss.python.org/t/windows-7-support-for-python-3-9-or-3-10-without-a-fork/13842):
>
> Hi, It is well known that Python 3.9 / 3.10 don’t work with Windows 7. It is somewhat annoying It would be great if it worked on Win7, because even if Win7 is EOL for consumers, Win7 keeps being supported by paid Extended Support Updates (ESU) till 2023 (and one variant till 2024). Many people (even those not using ESU) still use Win7 for some projects (example: computer not connected to any networking, so no security problem if the OS is not supported). There are two workarounds: a fork /Nu…

Also, a key point to note is that Python feature versions released before a given OS was end of life still support that OS for their own lifetime (1.5 years of bugfix support and 5 years of security support), even if that OS goes EOL during that period, so you effectively get up to 5 years of (security) support after your OS EoLs. That’s a pretty good deal for free, I’d say.

> [@Rosuav](#):
>
> 1. Upgrade to Debian Linux.

A little off topic, but note that Debian is probably not a good choice if you’re looking for the latest Python (at least not stock), as it prioritizes stability and the latest Debian stable only comes with 3.9, one version later than 3.8 (of course, you can install your own, but that takes a bit more effort). Additionaly, the Debian Python story has [numerous issues and compromises by default](https://gist.github.com/tiran/2dec9e03c6f901814f6d1e8dad09528e). Finally,m it’s probably also not the best choice for a Windows user thinking of migrating to Linux—other distros, like Ubuntu, cater much more to that.

---

<div class="post-metadata">

**Author:** ![Rosuav](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/rosuav/32/3429_2.png) [@Rosuav](https://discuss.python.org/u/Rosuav)\
**Post date:** [March 3, 2023, 12:35pm UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/5 "2023-03-03T12:35:48Z")

</div>

> [@CAM-Gerlach](#):
>
> A little off topic, but note that Debian is probably not a good choice if you’re looking for the latest Python (at least not stock), as it prioritizes stability and the latest Debian stable only comes with 3.9, one version later than 3.8 (of course, you can install your own, but that takes a bit more effort).

True. That said, though, the vast majority of people who ask this sort of question have already mentally dismissed Linux as an option, despite it being, in truth, exactly like any other option: a particular set of compromises, a particular set of offerings.

Sadly, a lot of people start out with an assumption that they’re acting under restrictions, when the truth is that most of those restrictions are consequences of other decisions. And while that might be a difference without a distinction in some cases (is “I live in {some country} and that’s illegal here” a restriction or a decision?), it is most definitely worth revisiting other decisions (like choices of operating system, Python version, etc), and none of us are qualified to do that as we don’t know the whole story.

---

<div class="post-metadata">

**Author:** ![CAM-Gerlach](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cam-gerlach/32/3688_2.png) [@CAM-Gerlach](https://discuss.python.org/u/CAM-Gerlach)\
**Post date:** [March 3, 2023, 1:10pm UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/6 "2023-03-03T13:10:43Z")

</div>

And really, its close to the same deal with upgrading their OS, as is the case for this user. I know I for one stayed on Win 8 on the same (upgraded) machine for a full decade, all the way until the recent EoL, not because I like it (I hated it; it was the worst of both worlds between Windows 7 and 10) but because I’d invested 10 years and hundreds of hours installing and configuring it and all my applications to be stable, secure, (reasonably) private and work exactly the way I wanted.

And by the end, it hardly mattered what OS I was using as I had Git Bash, Cgywin, Linux VMs, Choco, both the \*nix and Windows native build toolchains installed and a 4GB Raspberry Pi 4 with Fedora and Debian as a second machine, and I was spending far more time in the applications I’d installed, learned and configured (for some of which, like ConEmu and MultiCommander, for which I’ve still found no similarly featured and usable Linux equivalents) rather than interacting with the OS itself.

Even migrating to Win 10 was a long and complex process (the tail end of which was still ongoing) since I couldn’t just spend a week or two away from everything upgrading cold turkey, especially having accumulated a fair share of cruft over 10 years, and instead ended up having to spin up a parallel install on a separate identical machine and then cut over once it was finally fully set up and ready for production.

---

<div class="post-metadata">

**Author:** ![ecxod](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/ecxod/32/11358_2.png) [@ecxod](https://discuss.python.org/u/ecxod)\
**Post date:** [March 3, 2023, 1:21pm UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/7 "2023-03-03T13:21:18Z")

</div>

I think I’ve expressed myself in the wrong way. I don’t want _any_ support, neither from Python nor from Microsoft. I didn’t talk about support anywhere either. I talk about a ban.  
I just want to be allowed to install Python. You make yourselves here the vassal of Microsoft and forbid it to me.

I want to know why _you_ forbid me to run Python on Windows7.  
Everything else is nonsense.

---

<div class="post-metadata">

**Author:** ![CAM-Gerlach](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cam-gerlach/32/3688_2.png) [@CAM-Gerlach](https://discuss.python.org/u/CAM-Gerlach)\
**Post date:** [March 3, 2023, 1:29pm UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/8 "2023-03-03T13:29:21Z")

</div>

What “ban” are you talking about, exactly?

Anyone, including you, is welcome to download the Python source and build and run it on Windows 7 or any OS they want, EOL or not—just install a compatible version of the MSVC compiler, run the build script and ban, you’ve got Python. Of course, with newer versions you might need to patch some newer things that don’t work on older Windows, but that would be “support” not a “ban”.

---

<div class="post-metadata">

**Author:** ![Rosuav](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/rosuav/32/3429_2.png) [@Rosuav](https://discuss.python.org/u/Rosuav)\
**Post date:** [March 3, 2023, 2:07pm UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/9 "2023-03-03T14:07:14Z")

</div>

> [@CAM-Gerlach](#):
>
> And really, its close to the same deal with upgrading their OS, as is the case for this user. I know I for one stayed on Win 8 on the same (upgraded) machine for a full decade, all the way until the recent EoL, not because I like it (I hated it; it was the worst of both worlds between Windows 7 and 10) but because I’d invested 10 years and hundreds of hours installing and configuring it and all my applications to be stable, secure, (reasonably) private and work exactly the way I wanted.

Yep. It’s so true. And often, staying on an OS and version that you’re comfortable with _is_ the right choice. But it’s still a choice, and has to be weighed against the other choices.

---

<div class="post-metadata">

**Author:** ![steven.daprano](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/steven.daprano/32/1083_2.png) [@steven.daprano](https://discuss.python.org/u/steven.daprano)\
**Post date:** [March 3, 2023, 2:09pm UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/10 "2023-03-03T14:09:47Z")

</div>

Nobody is banning you from installing Python on Windows 7, or Windows 95 if you like, or a 1986 MacPlus. Go right ahead. Python is open source software, feel free to download the source code and compile it for whatever operating system you want.

Just remember that you don’t want any support to get it working.

If you are not paying people to develop Python, you don’t get to order them around and demand that they support the platforms you want. You aren’t their boss, or their paying customer, and nobody owes you Python 3.11 for Windows 7 for free.

---

<div class="post-metadata">

**Author:** ![Rosuav](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/rosuav/32/3429_2.png) [@Rosuav](https://discuss.python.org/u/Rosuav)\
**Post date:** [March 3, 2023, 2:12pm UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/11 "2023-03-03T14:12:03Z")

</div>

> [@ecxod](#):
>
> I think I’ve expressed myself in the wrong way. I don’t want _any_ support, neither from Python nor from Microsoft. I didn’t talk about support anywhere either. I talk about a ban.  
> I just want to be allowed to install Python. You make yourselves here the vassal of Microsoft and forbid it to me.
> 
> I want to know why _you_ forbid me to run Python on Windows7.  
> Everything else is nonsense.

When you’re accustomed to privilege, equality feels like oppression.

Instead of demanding why we’re “forbidding” you to run Python 3.11 on Windows 7, why not instead ask: Why are you demanding that the Python core devs test every new version of Python on all the old versions of Windows? Remember, you’re here asking about Win 7, but someone else will be asking about Win 8, another person will want XP, and there’s probably someone still running 98SE out there. Is it reasonable to demand that the Python developers test their code on all of those versions?

Remember that supporting old Windowses **is work** and someone has to do that work. Supporting current Windows is work too, but it’s work that benefits a lot more people.

Download the source code for Python. Download a C compiler. Build it yourself. Or find someone who’s willing to do that for you, possibly for $50/hour or more.

Insulting people is not a good way to get them to do things for you.

---

<div class="post-metadata">

**Author:** ![eryksun](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/eryksun/32/697_2.png) [@eryksun](https://discuss.python.org/u/eryksun)\
**Post date:** [March 3, 2023, 2:34pm UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/12 "2023-03-03T14:34:06Z")

</div>

> [@CAM-Gerlach](#):
>
> Anyone, including you, is welcome to download the Python source and build and run it on Windows 7 or any OS they want,

You would have to patch the source code to support Windows 7, more so with each subsequent release after 3.8. I don’t think it’s a lot, but you’ll need some familiarity with C. A recent example is that in 3.12 `os.getppid()` now uses the [process snapshot API](https://learn.microsoft.com/en-us/windows/win32/api/_proc_snap/), which is simpler and more efficient than the previous implementation based on the toolhelp API, but it requires Windows 8.

For Windows 8.1 users, note that Python 3.12 will only support Windows 10/11. I don’t know whether the installer will make that a rigid requirement – probably not – but you should still be able to build for Windows 8 without having to patch the source.

---

<div class="post-metadata">

**Author:** ![CAM-Gerlach](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cam-gerlach/32/3688_2.png) [@CAM-Gerlach](https://discuss.python.org/u/CAM-Gerlach)\
**Post date:** [March 3, 2023, 3:07pm UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/13 "2023-03-03T15:07:26Z")

</div>

> [@eryksun](#):
>
> You would have to patch the source code to support Windows 7, more so with each subsequent release after 3.8.

Yeah; as I mention in the next sentence

> [@CAM-Gerlach](#):
>
> Of course, with newer versions you might need to patch some newer things that don’t work on older Windows, but that would be “support” not a “ban”.

I do seem recall, though, that per the reports in the previous linked thread, 3.9 and I believe at least 3.10 was still buildable from source on Windows 7 (or with perhaps at most one small patch), as the reported issues were generally either with either the installer or with the built-against DLLs not being present by default on earlier Windows. Of course, that isn’t the case forever…

> [@eryksun](#):
>
> For Windows 8.1 users, note that Python 3.12 will only support Windows 10/11. I don’t know whether the installer will make that a rigid requirement – probably not – but you should still be able to build for Windows 8 without having to patch the source.

Yup; at least as of a couple months ago, as of alpha 3+ CPython `main` was still buildable from source with the full test suite passing on my old Windows 8.1 machine.

---

<div class="post-metadata">

**Author:** ![eryksun](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/eryksun/32/697_2.png) [@eryksun](https://discuss.python.org/u/eryksun)\
**Post date:** [March 3, 2023, 4:02pm UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/14 "2023-03-03T16:02:41Z")

</div>

> [@CAM-Gerlach](#):
>
> I do seem recall, though, that per the reports in the previous linked thread, 3.9 and I believe at least 3.10 was still buildable from source on Windows 7 (or with perhaps at most one small patch), as the reported issues were generally either with either the installer or with the built-against DLLs not being present by default on earlier Windows. Of course, that isn’t the case forever…

These are the cases the I can recall off the top of my head. Prior to 3.12, there are a couple of direct calls to `PathCch*` functions, which require Windows 8+. There are a few more `PathCch` calls if you count the new implementation of the py launcher in 3.11, but the old launcher implementation can be used instead.

Changes thus far in 3.12:

- The check for console pseudohandles in `set_inheritable()` in “Python/fileutils.c” was removed. This affects `os.set_inheritable()`, `os.dup()` and `os.dup2()`.
- Dynamically linking of `AddDllDirectory()` and `RemoveDllDirectory()` was removed. This affects `os.add_dll_directory()` and `os.remove_dll_directory()`.
- As mentioned, `os.getppid()` now uses the process snapshot API: `PssCaptureSnapshot()`, `PssQuerySnapshot()`, `PssFreeSnapshot()`.

It’s not critical, but we should have also remove the 32 KiB limit on console writes in `_Py_write_impl()` in “Python/fileutils.c”. It’s only relevant to the old console subsystem that was used prior to Windows 8. I forgot about this one in the last round of purging Windows 7 code. It’s on the chopping block.

---

<div class="post-metadata">

**Author:** ![tjreedy](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/tjreedy/32/137_2.png) [@tjreedy](https://discuss.python.org/u/tjreedy)\
**Post date:** [March 3, 2023, 7:19pm UTC](https://discuss.python.org/t/why-is-there-no-python3-11-for-windows7/24443/15 "2023-03-03T19:19:29Z")

</div>

If you write a program in python 3.10 and use 3.10 features such as `:=` and release it publicly, you have, in your words, ‘banned’ users from using with with 3.9 or before, and have made yourself a vassal of the PSF Core developers.

Turn your question around. Why is Windows Python available for 8.1, released in 2013? Because we restrict ourselves to features available in the 2017 version of MS C and the 2013 version of Windows. An equivalent Python program would support 3.3. There are many on [pypi.org](http://pypi.org) that require something newer.
