在 64 位 Windows 7 和 64 位 Python 2.7 上安装 Pygame [英] Installing Pygame on 64-bit Windows 7 and 64-bit Python 2.7
问题描述
标题说明了一切.我确实看到了类似的问题,有人提出了关于 http://www.lfd.uci 的建议.edu/~gohlke/pythonlibs/#pygame,但所有 pygame 可下载文件都是 .whl 格式,我不知道如何在 Windows 7 上运行.我尝试了cd [目录] > pip install [文件名]" 没有成功.
The title says it all. I do see similar questions, someone suggested about http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame, but all the pygame downloadable files are in .whl format which I have no idea how to run on Windows 7. I tried "cd [directory] > pip install [filename]" without success.
推荐答案
这对我有用(Windows 7,python 2.7,64 位):
This worked from me (Windows 7, python 2.7, 64 bit):
pip install C:/Users/ujjwal.karn/Downloads/pygame-1.9.2a0-cp27-none-win_amd64.whl
我从 http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame 也是如此.
I downloaded the file pygame-1.9.2a0-cp27-none-win_amd64.whl
from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame as well.
一般来说,whl
文件是用 pip
安装的:
In general, whl
files are installed with pip
:
pip install whatever.whl
这篇关于在 64 位 Windows 7 和 64 位 Python 2.7 上安装 Pygame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!