Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Ivan Monge
3,327 PointsDoes anyone know how to install pygame in Mac and in Pycharm?
I am trying to install pygame in my Mac with El Capitan running. I was wondering if someone can help me do this and if it was possible to set it up in pycharm.
3 Answers
Shahar Polak
5,756 PointsHi Evan,
One way to install it globally is to use Homebrew like so:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install pygame
I personally like to have my dependencies incapsulated via virtual environment. So the first step will be to set up the virtual env If you need a reminder After that you will need to pip install pygame
In Pycharm go to Presences>Project interpreter and select the directory of your venv
Good luck and happy coding :)
Ivan Monge
3,327 Pointsthanks a lot! I finally managed to install it
Shahar Polak
5,756 PointsGreat! I wish you best of luck and have fun :)