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.
Does Pygame work with Python 3? ¶ Yes. Pygame 1.9.
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.
The main Pygame page seems to be rarely updated. You can download Pygame releases direct from Bitbucket at https://bitbucket.org/pygame/pygame/downloads.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With