[英]installing pygame module for python 2.7.5 on terminal
i have already downloaded 32 bit pygame module on my mac osx 10.9.1 but i have no idea how to install it . 我已经在我的Mac osx 10.9.1上下载了32位pygame模块,但是我不知道如何安装它。 I have tried different things but i am not able to get it working in terminal.
我尝试了不同的方法,但是无法在终端中正常工作。 I was able to easily download PIL package using terminal.
我可以使用终端轻松下载PIL软件包。 Can Someone please give me all the steps for installing pygame?
有人可以给我安装pygame的所有步骤吗?
Binary packages are available from http://www.pygame.org/download.shtml - just run the downloaded .dmg
. 二进制包可从http://www.pygame.org/download.shtml获得 -只需运行下载的
.dmg
。
If you've downloaded a source package, extract it and run python setup.py install
inside the folder. 如果您已经下载了源程序包,请解压缩并在该文件夹中运行
python setup.py install
。
Otherwise you might be able to: 否则,您可能能够:
easy_install pygame
or 要么
pip install pygame
Each of these might need sudo
to run if you are installing into the system python. 如果要安装到系统python中,则其中每个都可能需要
sudo
才能运行。
If you are using a package manager you might use 如果您使用的是包管理器,则可以使用
port install py-game
or 要么
fink install pygame
or possibly 或可能
brew install pygame
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.