Install Pygame on 64-bit Windows 7 and 64-bit Python 2.7

The title says it all. I see similar questions, someone suggested http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame , but all the downloaded pygame files are in .whl format, which I have no idea how it runs on Windows 7. I tried "cd [directory]> pip install [filename]" without success.

+7
pygame
source share
3 answers

This worked from me (Windows 7, python 2.7, 64 bit):

pip install C:/Users/ujjwal.karn/Downloads/pygame-1.9.2a0-cp27-none-win_amd64.whl 

I downloaded the pygame-1.9.2a0-cp27-none-win_amd64.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame .

In general, whl files whl installed with pip :

 pip install whatever.whl 
+6
source share

Open the .whl file through WinRar and just extract the contents (you will find 3 folders) into your Python folder. For example: if you installed python 2.7.3 in C: then your directory for extraction will be C: \ Python27

+2
source share

You are doing the right thing. Please just check the python command, it should display win64

 C:>python Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (In tel)] on win64 Type "help", "copyright", "credits" or "license" for more information. 

if the output is win32 install pygame-1.9.2a0-cp34-none-win32.whl

0
source share

All Articles