Python for science in Mac OS X

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.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s