How do I install Pygame with pip in Python 3.4?
Solution 1
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
Solution 2
In Windows
1.open CMD
2.Path should locate where pip is installed for me it is C:\Users\qwrht\AppData\Local\Programs\Python\Python36-32\Scripts>
if python is in other directory follow steps in link CMD command to change directories
3.getting to the right path where pip is installed use command **pip install pygame.**in CMD
4.after Downloading pygame current version, Successfully installed pygame message will be displayed
Admin
Updated on June 13, 2020Comments
-
Admin almost 4 years
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.
-
Alexandre over 7 yearsThe little update might not be necessary because by the time I ran
pip install pygame
withsudo
preceding I had already run said update. -
Tim almost 7 yearsIf Pip is properly installed, just going to C:\ should be enough. Then: pip install pygame will get the job done.