How to Find and Install the Dependencies For Pygame

Where can I find and install the dependencies for pygame?

For debian, there is a pre-built package available. See here. You should be able to install it with apt-get or something similar.

Pygame installation error: dependencies not found?

PyGame is not compatible with python 3.8 versions so please try some older versions.

Use 3.6.8 it will support all the libraries available for python.

Problem to install pygame on ubuntu 20.04LTS

Try installing it with

sudo apt install python3-pygame

instead. The error you are getting is because you are missing the Pygame dependencies, which apt should install for you.

As a general rule, it’s a good idea to install Python packages through the package manager, and use pip only if they’re unavailable there.

pip is not installing Pygame and is giving ERROR

$ sudo apt-get install python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev   libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev

How to install pygame automatically when virtual environment is created?

To create environment:

conda env create -f environment.yml

To generate your yml:

conda env export > environment.yml

More informations in the documentation

Installing pygame on ubuntu

Figured it out. Found a terminal command to reinstall python:

sudo apt-get purge python && sudo apt-get install python2.7

Having trouble installing pygame ubuntu

The easiest way to install Pygame on Ubuntu is through apt. Just run sudo apt-get install python-pygame, and it will handle all the native dependencies for you. pip is better for pure-python dependencies or if you have to use it (eg, in a virtualenv).



Related Topics



Leave a reply



Submit