Install Python 3 and Virtualenv on Mac OSX

Install Python using brew (easiest way I know):

$ brew install python3

Test the python 3 version installed:

$ python3 --version
Python 3.4.1

Brew will automatically install pyvenv, which is the Python 3 command for starting a new virtual environment:

$ pyvenv venv

You should now be able to start your new Python 3 virtual environment:

$ source venv/bin/activate
(venv)$ python
Python 3.4.1 (default, Aug 24 2014, 21:32:40)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
< / >