在 Windows 上为 Python 3.4 安装 Pygame

Install Pygame for Python 3.4 on Windows

我安装了 Pygame,文件 pygame-1.9.2a0.win32-py3.4.msi 在文件夹 C:\Python34\Lib\site-packages\Include 中(Python 3.4) 在我的 Windows 7 OS 上。当我尝试使用 import pygame 导入它时,它显示以下错误消息:

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
     import pygame
ImportError: No module named 'pygame'

当我使用 LiClipse 并在 External Libraries 下的 pythonpath 中包含文件夹 C:\Python34\Lib\site-packages\Include 时,import pygame 不再有错误消息,但是当我使用 pygame.init() 时,我收到以下错误消息

pygame.init()
AttributeError: 'module' object has no attribute 'init'

我是否将它安装到正确的文件夹中,我是否在 LiClipse 中设置了正确的文件夹(或者我应该首先设置一个文件夹),我该怎么做才能让它工作?

您尝试过 pip 安装吗? link 可能会解释您需要做什么。