Pygame installation for Python 3.3

2019-01-09 03:33发布

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.

标签: python pygame
7条回答
Explosion°爆炸
2楼-- · 2019-01-09 03:36

Every time I update my python verion (currently I'm working with python 3.3), I download a special build for pygame, from this adress. It has builds for many other packages, so I think it is worth to check it out.

查看更多
【Aperson】
3楼-- · 2019-01-09 03:44

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
查看更多
孤傲高冷的网名
4楼-- · 2019-01-09 03:48

If you are on Windows and have Python 3.3, open the download page on bitbucket. Download: pygame-1.9.2a0.win32-py3.3.msi

Then you can test if you have Pygame by importing pygame.

查看更多
何必那么认真
5楼-- · 2019-01-09 03:50

sudo apt-get install python-pygame
Raise some errors like 404 for some packages so
https://community.webfaction.com/questions/315/how-do-i-install-pygame
This link help full for me

查看更多
冷血范
6楼-- · 2019-01-09 03:54

You need to download the version of Pygame that is equivalent to Python 3.3 from Bitbucket and Pygame is only available in 32 bit, so you need to make sure that Python is 3.3 32 bit. Download from: https://bitbucket.org/pygame/pygame/downloads

查看更多
乱世女痞
7楼-- · 2019-01-09 03:58

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

查看更多
登录 后发表回答