pygame vs pygame-ce
Two maintained packages both give you import pygame. Here's what differs, what stays the same, and how to choose and switch.
On this page
The short answer#
- Starting out, or following this site? Either works. Every tutorial, example and game here was tested on both.
- Using a very new Python version? Check the table below: pygame-ce has usually published wheels for new Python releases sooner.
- Want newer APIs such as float rectangles (
FRect) or theWindowclass? Use pygame-ce. - Maintaining an existing project or following an older book? pygame keeps working; there's no need to switch unless you need something from pygame-ce.
Where they come from#
The original pygame project started in 2000 and is published as pygame on PyPI from the pygame/pygame repository. In February 2023 a group of its contributors published the first release of pygame-ce ("community edition"), a fork published as pygame-ce from pygame-community/pygame-ce, with documentation at pyga.me. Both are open source under the LGPL-2.1 license, and both import as pygame.
| pygame | pygame-ce | |
|---|---|---|
| Latest version | 2.6.1 | 2.5.8 |
| Released | ||
| Install command | pip install pygame | pip install pygame-ce |
| Prebuilt wheels for Python | 3.6 – 3.13 | 3.10 – 3.14 |
| Minimum Python (package metadata) | >=3.6 | >=3.10 |
| Wheels for | Windows (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) |
| License | LGPL-2.1 | LGPL-2.1 |
| Official page | pygame on PyPI | pygame-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).
What is the same#
The core API is shared: pygame.display, draw, event, Surface, Rect, sprite, mixer, font, time, transform, math, mask and joystick behave the same for everyday code. A program written for pygame almost always runs unchanged on pygame-ce, which is why it's sometimes called a drop-in replacement.
What pygame-ce adds#
These features exist in pygame-ce 2.5.8 and were confirmed missing from pygame 2.6.1 by checking both libraries directly:
| Feature | What it does |
|---|---|
pygame.FRect, Surface.get_frect() | Rectangles with float coordinates, for smooth movement without a separate position variable. |
pygame.Window | Object-oriented window management, including multiple windows. |
Rect.move_to() | Returns a moved copy using keyword positions such as center=. |
pygame.draw.aacircle | Anti-aliased circles. |
transform.box_blur, gaussian_blur, invert | Image filters. |
Surface.fblits() | Faster batch blitting. |
Font.render(..., wraplength=), Font.align | Word-wrapped, aligned multi-line text. |
Color.from_hex(), pygame.Clock | Convenience shortcuts. |
image.load_sized_svg() | Load SVG images at a chosen size. |
If you use any of these, your game requires pygame-ce. The API reference marks pygame-ce-only features on each page.
Detecting which one is installed#
import pygame
print(pygame.version.ver)
print("pygame-ce" if getattr(pygame, "IS_CE", False) else "pygame")pygame-ce sets pygame.IS_CE; the original pygame doesn't define it.
Switching between them#
Both packages install the same pygame folder, so having both in one environment leads to a broken or confusing install. Remove one before adding the other:
python -m pip uninstall pygame
python -m pip install pygame-ceThen run your game and test it. For typical projects, nothing else changes.
In the browser#
Browser runtimes build on pygame-ce: Pyodide packages pygame-ce, and the pygbag tool supports only pygame-ce. Pygame Online on this site uses Pyodide's pygame-ce. If you plan to publish to the web, developing with pygame-ce on the desktop avoids surprises.