Installation

Python is already installed on macOS (Only V2.7 though). There are a couple of essentialls though

sudo easy_install pip
sudo -H pip install virtualenv

If you need Python 3.* then use homebrew and do a brew install python3

The take a look at how pip & virtualenv work.