MacOS, Installing Python & pygame

Saturday 21st March, UK – the coronavirus is in full swing, today is the first day in the UK that Restaurants, Pubs, Cafe’s & leisure facilities etc have to stay closed.

So I’ve decided to install Python3 & pygame on my Mac and see what I can do – now I’m more of a Windows guy, so I thought this would be interesting – turns out is was painful.

So, if you want to install Python with Pygame how would I recommend it? Well I think using HomeBrew is the easiest by far.

To do this first you need to install Xcode and Xcode-select, this is done by running the following command:

xcode-select --install

Now, you can run the following to install HomeBrew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

For more information see here.

Now HomeBrew is installed, install Python3 by running:

brew install python3

and Java by running:

brew cask install adoptopenjdk

and finally pygame by running:

pip3 install pygame

Now you should be good to go!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: