Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pygame installation for Python 3.3

Tags:

I am trying to import Pygame to use for my version of Python, 3.3. The downloads on the Pygame website only have Python 3.1 and 3.2. I cannot seem to be able to import Pygame though I thought I had it installed in the correct path. I have tried both the 3.1 and 3.2 Pygame downloads.

Is Pygame just not installed in the correct file path or is Pygame not compatible with my version of Python (3.3)?

I am running Windows 7 and here is the error:

Traceback (most recent call last): File "<pyshell#3>", line 1, in <module> import pygame File ".\pygame\__init__.py", line 95, in <module> from pygame.base import * ImportError: DLL load failed: The specified module could not be found. 
like image 708
ShroomBandit Avatar asked Jan 02 '13 00:01

ShroomBandit


People also ask

Does pygame work with Python 3?

Does Pygame work with Python 3? ¶ Yes. Pygame 1.9.

Can I pip install pygame?

The best way to install pygame is with the pip tool (which is what python uses to install packages). Note, this comes with python in recent versions. We use the --user flag to tell it to install into the home directory, rather than globally.


2 Answers

The main Pygame page seems to be rarely updated. You can download Pygame releases direct from Bitbucket at https://bitbucket.org/pygame/pygame/downloads.

like image 175
Paul Vincent Craven Avatar answered Mar 03 '23 23:03

Paul Vincent Craven


If the solution from the Paul Vincent Craven's answer gives you "Python version 3.3 required, which was not found in the registry.", you have to download and install this version from the official download site:

Python 3.3.0 Windows X86-64 MSI Installer 
like image 35
Slobodan Stevic Avatar answered Mar 03 '23 23:03

Slobodan Stevic