最近更新于 2026-03-28 00:46
前言
2025.1.13
我自己电脑系统是 Windows 11 24H2,直接装的当前最新稳定版 Python 3.13.1,我写的一个工具用 pyinstaller 打包成可执行文件后,有同事用 Windows 7 的电脑无法运行,提示:
系统错误
无法启动此程序,因为计算机中丢失 api-ms-win-core-path-|1-2-0.dll。尝试重新安装此程序以解决此问题。
我才发现 Python 3.13.1 不支持 Windows 7,我也暂时不打算做适配了。我在代码中还使用了 match-case,这是在 Python 3.10 开始支持的,而 Windows 7 最高可用 Python 3.8,也就是还要改代码重新用最高 Python 3.8 构建才行。
不过后续要开发工具,考虑 Windows 7 可用的话,还是得用 Python 3.8 开发测试打包。
版本支持情况
2026/3/28
- Windows XP 最高可用 Python 3.4.x
- Windows 7 最高可用 Python 3.8.x
- Windows 8.1 最高可用 Python 3.12.x
- Windows 10/11 最新 Python 3.14 版本可用,未停止支持
版本支持可以参考:
三方解释器:
PythonWin7:https://github.com/adang1345/PythonWin7
一个非官方的 Python 项目,提供了 Python 3.9 及以上支持 Windows 7 的 Python 解释器。
各版本 Windows 最后可用的 Python 版本
