Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install PyGame on Python 3.4?

So I have this little problem. When I try to install PyGame for Python 3.4 I download a .whl (wheel?) file and don't know how to use it. Some guys told me something about pip but don't know how to use/install it.

like image 273
DedSecz Avatar asked Jan 24 '15 16:01

DedSecz


People also ask

How do I import pygame into Python 3?

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 pygame work with Python 3?

First Check you are using python's latest version or not. Because the PyGame is only supported python 3.7. 7 or higher version so make sure you are using the latest version of python.

Which Python version is best for pygame?

pygame works with most versions of Python, but Python 3.6 is recommended and used throughout this article.

Does Python 3.8 have 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.


2 Answers

You can install the wheel file for Python 3.4 here:

First you have to install the wheel package from pip then install Pygame.

pip install wheel

pip install pygame‑1.9.2a0‑cp34‑none‑win_amd64.whl

Here's a video to help you install pip on Youtube.

like image 163
Malik Brahimi Avatar answered Oct 25 '22 13:10

Malik Brahimi


Here is a great VIDEO tutorial: http://goo.gl/PurJqk (it is on youtube)

This is what I use to install .whl modules to python (I do this in the 64 bit windows cmd):

cd "C:\Users\(YOUR USERNAME)\Desktop" 

(assuming that you have the .whl file on your desktop)

C:\Python34\Scripts\pip install filename.whl

(where filename.whl is the full name of the .whl file, with the .whl extension)

After that it will install, and you are free to use PyGame!

like image 6
StubZz Avatar answered Oct 25 '22 12:10

StubZz