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