Pygame and Python version compatibility

Pygame installs instantly only on Python versions that have prebuilt wheels. Here's how to check, what to do on a brand-new Python, and how to run several Pythons side by side.

Updated
On this page

Current support#

Current pygame and pygame-ce releases
pygamepygame-ce
Latest version2.6.12.5.8
Released
Install commandpip install pygamepip install pygame-ce
Prebuilt wheels for Python3.6 – 3.133.10 – 3.14
Minimum Python (package metadata)>=3.6>=3.10
Wheels forWindows (32-bit, 64-bit); macOS (Intel, Apple silicon); Linux (x86_64, aarch64, i686)Windows (32-bit, 64-bit, ARM64); macOS (universal2); Linux (x86_64, aarch64, i686)
LicenseLGPL-2.1LGPL-2.1
Official pagepygame on PyPIpygame-ce on PyPI

Checked against PyPI on November 28, 2026. The browser editor uses pygame-ce 2.4.1 on Python 3.12 (Pyodide 0.27.7).

"Prebuilt wheels" means pip downloads a ready-made package. On Python versions outside that range pip tries to compile from source, which normally fails on a typical computer (see pip install errors). The minimum version in the package metadata is the oldest Python the package claims to support; new Python versions need new releases with wheels.

As of the date above, pygame 2.6.1 publishes wheels up to Python 3.13, while pygame-ce publishes wheels for Python 3.14. So on Python 3.14, pip install pygame tries a source build, and pip install pygame-ce installs normally.

Check your Python#

Terminal
python --version
python -c "import struct; print(struct.calcsize('P') * 8, 'bit')"

Use a 64-bit Python on modern Windows, macOS and Linux.

Options on an unsupported Python#

  1. Install pygame-ce: python -m pip install pygame-ce. Your code stays the same. Compare the packages.
  2. Install a supported Python alongside your current one. You can keep several versions installed:
    • Windows: install another version from python.org, then use py -3.13 -m pip install pygame and py -3.13 game.py.
    • macOS and Linux: install the version from python.org, your package manager or a version manager such as pyenv, then create a virtual environment with it: python3.13 -m venv .venv.
  3. Wait for a release. New Python versions arrive every October; library maintainers usually publish matching wheels in the following weeks or months.

Old Python versions#

pygame 2.6.1's metadata still allows Python 3.6, but very old Pythons no longer receive security updates. pygame-ce requires Python 3.10 or newer. For new projects, use a recent, supported Python release.

Code compatibility#

Pygame code itself rarely depends on the Python version. Newer Python syntax (for example match statements, which need Python 3.10) is a Python requirement, not a Pygame one.

↑ ↓ to moveEnter to openEsc to close