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.

2 min readUpdated
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 the Window class? 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.

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).

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:

FeatureWhat it does
pygame.FRect, Surface.get_frect()Rectangles with float coordinates, for smooth movement without a separate position variable.
pygame.WindowObject-oriented window management, including multiple windows.
Rect.move_to()Returns a moved copy using keyword positions such as center=.
pygame.draw.aacircleAnti-aliased circles.
transform.box_blur, gaussian_blur, invertImage filters.
Surface.fblits()Faster batch blitting.
Font.render(..., wraplength=), Font.alignWord-wrapped, aligned multi-line text.
Color.from_hex(), pygame.ClockConvenience 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#

Python
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:

Terminal
python -m pip uninstall pygame
python -m pip install pygame-ce

Then 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.

↑ ↓ to moveEnter to openEsc to close