如何在 Windows 7 32 位计算机上安装 Pygame for Python 3.4.3?

How do I install Pygame for Python 3.4.3 on a Windows 7 32-bit computer?

我正在尝试安装 Pygame,但我很困惑。在 pygame.org 网站上,没有 3.4 的版本,当我从 http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame I get a .whl file. Upon further investigation, I've come across another question like this:

下载正确的文件时

但是当我尝试 运行

pip install wheel
pip install pygame-1.9.2a0-cp34-none-win32.whl

我收到一个错误:

SyntaxError: invalid syntax

它突出显示了代码的 "install" 部分。 有帮助吗?

如果您转到 pygame 位桶 https://bitbucket.org/pygame/pygame/downloads 32 位 Python 3.4 pygame.

有一个 .msi