python-2.7 - 在 64 位 Windows 7 和 64 位 Python 2.7 上安装 Pygame

标签 python-2.7 pygame installation-package

标题说明了一切。我确实看到了类似的问题,有人建议了 http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame ,但所有 pygame 可下载文件都是 .whl 格式,我不知道如何在 Windows 7 上运行。我尝试了“cd [目录] > pip install [文件名]”,但没有成功。

最佳答案

这对我有用(Windows 7,python 2.7,64位):

pip install C:/Users/ujjwal.karn/Downloads/pygame-1.9.2a0-cp27-none-win_amd64.whl

我下载了文件 pygame-1.9.2a0-cp27-none-win_amd64.whl来自 http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame以及。

一般来说,whl文件使用 pip 安装:
pip install whatever.whl

关于python-2.7 - 在 64 位 Windows 7 和 64 位 Python 2.7 上安装 Pygame,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27737264/

相关文章:

python - 如何在按键事件后将函数blit到屏幕(pygame)

python - 当我尝试移动 Pygame 时,玩家回到初始位置

python - pygame 在退出()时仍然使用 .ttf 文件

java - 使用 Eclipse 编写 Java GUI

r - 无法在R版本3.1.1中安装tidyr

Python:不想一起工作的列表

python-2.7 - python 类型错误 : unbound method zonecek() must be called with zoneAl instance as first argument (got nothing instead)

python - 升级默认 python 版本或在 Linux 中安装另一个 python 版本

python - 如何将包含多个字典的列表转换为字典

go - 如何仅卸载一种特定的Go语言版本(Arch Linux)?