macbook 安装pygame环境


# 安装homebrew  https://brew.sh/index_zh-cn
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# https://blog.csdn.net/Monty111/article/details/77994583 brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
# https://www.pygame.org/wiki/GettingStarted python3 -m virtualenv anenv . ./anenv/bin/activate # venvdotapp helps the python be a mac 'app'. So the pygame window can get focus. python -m pip install venvdotapp venvdotapp
python
-m pip install pygame # See if pygame works with the oo module, and the aliens example. python -m pygame.examples.aliens

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM