DEV Community

Stevo Perisic
Stevo Perisic

Posted on

5

Installing Python3, Pip and AWS CLI on macOS Sierra

A quick guide to installing Python v3, Pip package manager and the AWS CLI on the Mac OS Sierra. This write up assumes you only have Python 2.7 that came pre-installed on the Mac and Homebrew installed. If you need Homebrew please visit https://brew.sh/ and get it than come back here for the rest of the guide.

First let’s get Python 3 installed by running (If you had Homebrew installed it might update when you call the install command as it did for me. you might need to re-run the below install command.):


~ brew install python3

At this point, you have the system Python 2.7 available and the Homebrew version of Python 3 as well. Launch the system Python 2.7 using ~ python and Pyhton 3 using ~ python3 commands respectively.

You’ll be able to start Pip 3 using the ~ pip3 command.

Now let’s install AWS CLI.


~ pip3 install awscli --upgrade --user

Verify the install using:


~ aws --version

In my case I had to add the Python 3 location to the $PATH variable, you might have to do it also. Here’s how:


~ export PATH=~/Library/Python/3.6/bin:$PATH

Check the aws install one more time:


~ aws --version
aws-cli/1.11.185 Python/3.6.3 Darwin/16.7.0 botocore/1.7.43

Now you should be all set :)

You will have to set up the credentials within the AWS CLI, you can get those values from the “My Security Credentials” menu link under your username in the Amazon dashboard.

Just in case you need them, here are some references:

Installing Python 3 on Mac OS X - The Hitchhiker's Guide to Python

Install the AWS Command Line Interface on macOS - AWS Command Line Interface

Hot sauce if you're wrong - web dev trivia for staff engineers

Hot sauce if you're wrong · web dev trivia for staff engineers (Chris vs Jeremy, Leet Heat S1.E4)

  • Shipping Fast: Test your knowledge of deployment strategies and techniques
  • Authentication: Prove you know your OAuth from your JWT
  • CSS: Demonstrate your styling expertise under pressure
  • Acronyms: Decode the alphabet soup of web development
  • Accessibility: Show your commitment to building for everyone

Contestants must answer rapid-fire questions across the full stack of modern web development. Get it right, earn points. Get it wrong? The spice level goes up!

Watch Video 🌶️🔥

Top comments (0)

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay