-
-
Notifications
You must be signed in to change notification settings - Fork 154
Compiling on Linux
Ankith edited this page Jun 29, 2024
·
4 revisions
- Install the dependencies:
sudo apt-get update
sudo apt-get install build-essential git
sudo apt-get install libfreetype6-dev libportmidi-dev python3-setuptools python3-dev python3-numpy
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
- Clone the repository in a directory you are happy to work in:
git clone https://github.com/pygame-community/pygame-ce.git
- Change into the pygame subdirectory you just created, and build pygame Community Edition:
cd pygame-ce
python3 -m pip install . --user
- That's it!
- Install the dependencies:
sudo pacman -Syyu
sudo pacman -S pkg-config base-devel git
sudo pacman -S sdl2 sdl2_ttf sdl2_image sdl2_mixer portmidi
python3 -m pip install numpy setuptools
- Clone the repository in a directory you are happy to work in:
git clone https://github.com/pygame-community/pygame-ce.git
- Change into the pygame subdirectory you just created, and build pygame Community Edition:
cd pygame-ce
python3 -m pip install . --user
- That's it!
You may also check out the Advanced compilation guide (for developers) if you are getting into development or are running into issues.