Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install Pygame with pip in Python 3.4?

I have tried commands like

pip install pygame

or

pip install 'Pygame == 1.9.1release' --allow-external Pygame --allow-    unverified Pygame

suggested in other threads but and similars but they don't seem to work for me. Help me, please.

like image 961
guiraus Avatar asked Feb 17 '26 02:02

guiraus


1 Answers

I did this in Ubuntu and it worked for me with Python 3.4:

I ran a command which apparently upgraded pip and setuptools to the latest version, according to this guide in the docs, but did it as a superuser. It might end up not being strictly necessary:

sudo pip install -U pip setuptools

Then, I ran the install command for Pygame as a superuser as well:

sudo pip install pygame

like image 63
Alexandre Avatar answered Feb 19 '26 14:02

Alexandre