Python is a very powerful programming language. It has many helpful tools for carrying out analysis of scientific data.
Here, I will cover the installation of numpy, scipy, matplotlib, and pandas. I will assume that homebrew has been installed on your Mac.
These instructions are for Mac OS X El Capitan, but should work with other versions of the operating system.
First of all, we want to install python3 with the commands
$ brew install python3
$ easy_install-3.5 pip
Now you can use pip to install the relevant python packages
$pip3 install numpy
$pip3 install scipy
$pip3 install matplotlib
$pip3 install pandas
This completes the installation of python and python scientific packages on your system.