The easiest way to get started on Windows is to download and run the installer from the Download page.
Run unins000.exe located in the game installation folder, or use Windows Settings → Apps. If some chunks folders persist, delete the folder manually.
Download the ZIP file from the Download page and extract it.
The game includes automatic setup scripts that create a virtual environment, install dependencies, and run the game.
Windows (PowerShell):
# Navigate to the extracted folder
cd drift_race_v0.8
# Run the PowerShell script
.\run.ps1
Windows (Command Prompt):
# Navigate to the extracted folder
cd drift_race_v0.8
# Run the batch script
run.bat
Linux:
# Navigate to the extracted folder
cd drift_race_v0.8
# Make the script executable (first time only)
chmod +x run.sh
# Run the shell script
./run.sh
What the script does:
Next time: Just run the same script again. It will reuse the existing virtual environment and launch the game directly without reinstalling dependencies.
If you prefer to set up manually:
Windows:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
python -m drift
Linux:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python -m drift
Host a room:
python -m drift.app --mode host --code ABCD --name YourName
Join a room:
python -m drift.app --mode join --code ABCD --name YourName
Troubleshooting: If Pygame-CE fails to install, update pip first:
python -m pip install --upgrade pip
pip install -r requirements.txt
Run unins000.exe located in the game installation folder, or use Windows Settings → Apps to uninstall.
Simply delete the entire game folder. The virtual environment and all dependencies are contained within the .venv folder, so no system-wide cleanup is needed.
Drift Race requires pygame-ce (Community Edition) for optimal performance. Regular pygame may cause significantly lower FPS.
# Uninstall regular pygame first
pip uninstall pygame
# Install pygame-ce
pip install pygame-ce
If you downloaded the ZIP/source version, use the provided run scripts (run.ps1, run.bat, or run.sh) which automatically handle the virtual environment setup and activation.
Windows:
# Check which pygame version is installed
pip list | Select-String pygame
# Should show: pygame-ce (not pygame)
Linux:
# Check which pygame version is installed
pip list | grep pygame
# Should show: pygame-ce (not pygame)
Note: If you're still experiencing issues after these steps, make sure you have Python 3.11 or 3.12 installed, and that all requirements from requirements.txt are properly installed in your virtual environment.
If you're having trouble activating the virtual environment manually, the easiest solution is to use the provided automatic run scripts (run.ps1, run.bat, or run.sh) which handle everything for you.
You can also run commands directly using the full path to the Python and pip executables inside the venv.
# Install packages
.\.venv\Scripts\pip.exe install -r requirements.txt
# Run the game
.\.venv\Scripts\python.exe -m drift
# Install packages
.venv/bin/pip install -r requirements.txt
# Run the game
.venv/bin/python -m drift
Note: On some Linux systems, the executables might be named python3 and pip3 instead of python and pip. If one doesn't work, try the other.