홀덤사이트Paris Sportif CryptoTous Les Sites De Paris Sportifs BelgiqueMeilleur Casino En Ligne BelgiqueCasino Sans Documents
Step-by-Step: Installing Pandas on Windows 7 from PyPI with easy_install  
Saturday, April 21, 2012 at 4:27PM
saveenr

In preparation for some posts on analytics and visualization, I was inspired by this video of Wes McKinney introducing a PyCon audience to Pandas. I needed a low-friction tool to interactively work with tabular data and for now Pandas looks like the right choice.

I also wanted to take this opportunity to learn how to use PyPI to install packages instead of relying on binary installers. Unfortunately getting this done end-to-end isn't entirely clear so I've put up my steps below.

State of My System Before I started

 

 

Step 1 Install SetupTools

Go here: http://pypi.python.org/pypi/setuptools and find the binary installer for Python 2.7

I downloaded this version: setuptools-0.6c11.win32-py2.7.exe

Yes, this is a binary installer. But once we have setuptools everything else is easy and will not require an installer.

Look in the C:\Python27\Scripts folder. You'll see that it contains an EXE called easy_install.

Snap000009

 

 

Step 2 Install NumPy

Start a cmd shell are this simple command

C:\>Python27\Scripts\easy_install.exe numpy

This command will start and eventually after spitting out a lot of text numpy will be installed.

Snap000010

 

Snap000011

 

 

Step 3 Install dateutil

This package is actually called “python-dateutil” so we need to use that name instead with easy_install

C:\>Python27\Scripts\easy_install.exe python-dateutil

 

Snap000012

 

Step 4 Install Pandas

You can see where this is going …

C:\>Python27\Scripts\easy_install.exe pandas

Snap000013

 

 

Step 5: Verify Pandas is working

We are done with the installation, let's make sure it actually works by running a quick script.

import numpy
import pandas

df = pandas.DataFrame( { "A": [11, 12, 13], "B": [34,78,109] } )

df.sum()

Snap000014

 

 

Parting Thoughts

 

 

Article originally appeared on viziblr (http://viziblr.com/).
See website for complete article licensing information.

Other interesting websites