Trouble Installing Pygame on Mac - error code 255 in None I need to install pygame on my MacBook for a class, I was able to get it installed fine on my Windows machine, but the OSX installation process has been much rougher. The error I'm getting when try and clone the mercurial repository: 

pip3 install hg+bitbucket.org/pygame/pygame
Command "hg clone --noupdate -q http://bitbucket.org/pygame/pygame /var/folders/97/gp7g9lv51w92vlqkbskfx55c0000gn/T/pip-zu8qunw4-build" failed with error code 255 in None


Also all of the other steps in the installation worked fine and Mercurial is properly installed.
Using brew and not hg fixed the problem, I used this line for installation: 

brew install homebrew/python/pygame