This article will explain how to install Python3 and virtual environment with virtualenv on Mac OS X. Normally, your Mac installed Python 2.7 already, you could remove it or keep both of them.
Before starting, make sure your Mac installed Xcode already. If not you can get it from Apple Store.
Next, we install Command line of Xcode through bellow command: