installing pygame module for python 2.7.5 on terminal

扶醉桌前 提交于 2019-12-11 18:13:48

问题


i have already downloaded 32 bit pygame module on my mac osx 10.9.1 but i have no idea how to install it . 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. Can Someone please give me all the steps for installing pygame?


回答1:


Binary packages are available from http://www.pygame.org/download.shtml - just run the downloaded .dmg.

If you've downloaded a source package, extract it and run python setup.py install inside the folder.

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.

If you are using a package manager you might use

port install py-game

or

fink install pygame

or possibly

brew install pygame


来源:https://stackoverflow.com/questions/20968480/installing-pygame-module-for-python-2-7-5-on-terminal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!