osx install pandas
Anaconda CE is a simple installer that provides a Python installation with great number of data processing tools bundled.
For the purposes of this workshop, we recommend you download and install that package.
Then we will download the latest version of pandas and configure it to work with Anaconda Python.
Click this link, permitting your web browser to save it to the default location (which is probably ~/Downloads):
Open up a Terminal, and type these commands:
cd Downloads sh AnacondaCE-1.2.1-MacOSX-x86_64.sh
Follow the prompts, and permit it to install. If you have questions, ask a staff member.
We urge you to choose the default install location, which is ~/anaconda.
In a terminal, run these commands:
cd ~ mkdir -p projects cd projects git clone https://github.com/pydata/pandas.git
This will download the latest version of pandas to your projects folder, creating it if necessary.
To build pandas, you have to run the following two commands:
~/anaconda/bin/python setup.py build_ext --inplace
This will take about 2 minutes. Once it is finished, run this command:
~/anaconda/bin/python setup.py build
This will also take about 2 minutes.
To make sure it has built properly, run the following command inside the pandas directory:
~/anaconda/bin/python
Within this python prompt, type:
>>> import pandas >>> print pandas.__version__
You should see this version number: '''0.10.0b1'''. If you see something different, get help from an instructor.
In general, for this workshop, you should use ~/anaconda/bin/python instead of just typing python into your prompt.
[« Back to laptop setup](laptop setup)