There are two ways of installing python3 on a mac system:
Use the Homebrew package manager. After installing Homebrew install Python 3 by running brew install python3.
Download and install the latest stable Python 3 package. Be sure to run the included Install Certificates command from Finder.
Once Python 3 is installed on your Mac, from Terminal run:
python3 -m pip install --upgrade virtualenv