Quick Install Python 3 in OSX

So I figured its about time to start a small chapter of blogs on using python to administer, automate and control the vSphere user environment. In this first part ill document the installation of python3 for OSX.

Im sure there are a few ways to do this, but this is the way that worked for me to install python 3 on OSX. I am running High Sierra 10.13.5.

Install homebrew, an osx package manager.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


If you have homebrew already go ahead and run an update
brew update


To set the path so that homebrew installed tools are found and located:

open profile in editor:
vi ~/.bash_profile

add the following:
export PATH=/usr/local/bin:$PATH

enable changes to profile
source ~/.bash_profile


Install Python3 and install
brew install python3

Homebrew will also install the folloiwing

  • wheel – “wheel is a ZIP-format archive with a specially formatted filename and the .whl extension”
  • pip3 – used as management to install and manage packages written in Python
  • setuptools – “Setuptools is a package development process library designed to facilitate packaging Python projects by enhancing the Python standard library distutils”

>Ill be using pip later > syntax is the following:
pip3 install name_of_python_module


After Actions:

Check version:
python3 --version

Upgrade python3 – Check for homebrew update and then attempt to upgrade python3
brew update
brew upgrade python3