Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 544
KubiK888 Avatar asked Jan 02 '15 04:01

KubiK888


People also ask

What version of Python is pygame compatible with?

First Check you are using python's latest version or not. Because the PyGame is only supported python 3.7.

Does pygame work on 64-bit?

What operating system are you using? You can download 64-bit pygame for Windows but not for Mac.

How do I install pygame on Windows 7?

Open a terminal, and type 'sudo apt-get install idle pygame', enter your password and type 'y' at the prompts, if necessary. 2. After the installation completes, enter 'python' in the terminal to launch Python. Verify that it's using version 2.7 or newer, then at the Python prompt enter 'import pygame'.

Does Python 3.8 support pygame?

Pygame on Python 3.8 You should use the same command you use to run a Python terminal session on your system, which might be python , python3 , py , python3. 8 , or something else. If you've had any issues running Pygame on macOS, this version of Pygame should address those issues as well.


1 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 file pygame-1.9.2a0-cp27-none-win_amd64.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame as well.

In general, whl files are installed with pip:

pip install whatever.whl
like image 149
Ujjwal Avatar answered Oct 19 '22 02:10

Ujjwal