3

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.

guiraus
  • 39
  • 1
  • 1
  • 3
  • 4
    possible duplicate of [Trouble installing pygame using pip install](http://stackoverflow.com/questions/29548982/trouble-installing-pygame-using-pip-install) – muddyfish Aug 12 '15 at 14:57
  • This answer shows as a example how to install pygame from wheel using pip with both full path installed and not [How to install this wheel?](http://stackoverflow.com/questions/28150738/how-to-install-this-wheel) – john taylor Aug 12 '15 at 20:31
  • `C:\Python34\Scripts\pip install C:\Python34\Scripts\pygame-1.9.2a0-cp34-none-win_amd64.whl` rename to your exact whl name of coarse – john taylor Aug 12 '15 at 20:32

2 Answers2

3

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

Alexandre
  • 386
  • 7
  • 15
  • The little update might not be necessary because by the time I ran `pip install pygame` with `sudo` preceding I had already run said update. – Alexandre Dec 11 '16 at 02:48
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 as shown

sameer
  • 443
  • 4
  • 9
  • If Pip is properly installed, just going to C:\ should be enough. Then: pip install pygame will get the job done. – Tim Jun 09 '17 at 11:36