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
Decode HTML Entities in Python String
How to Change the Environment of a Parent Process in Python
Uninstall Python Built from Source
Return Value of X = Os.System(..)
How to Select Rows from a Dataframe Based on Column Values
Is There a Built in Function For String Natural Sort
How to Keep Keys/Values in Same Order as Declared
Why Does "Pip Install" Inside Python Raise a Syntaxerror
Rolling or Sliding Window Iterator
How to Import a Module Given Its Name as String
Strip HTML from Strings in Python
Execute Python Script Via Crontab
Force Python to Use an Older Version of Module (Than What I Have Installed Now)
After Anaconda Installation, Conda Command Fails With "Importerror: No Module Named Conda.Cli"
How to Execute a Program or Call a System Command
Selenium "Selenium.Common.Exceptions.Nosuchelementexception" When Using Chrome