how to install numpy and pandas on windows

Viewed 73934

I'll preface by saying I'm a programming n00b by stack standards. I have experience with data analysis and scripting -- this is what I do professionally at a financial firm -- but I have no idea what I'm doing on the back end.

I'm trying to start using pandas and python --- moving away from matlab/vba but I can't figure out how to install the pandas library.

When I try to import pandas I get an error that numpy module is not present. I tried to install ezsetup / pip (no idea what this is btw)... and I have no idea where to enter this command$ python get-pip.py

Sometimes when I try to import pandas I get an error cannot import name table hashable

I have no idea what any of this means and I am not getting anywhere.

Update

Ok I installed anaconda and it seems to be allowing me to import numpy and pandas directly from the console. That being said when I try to write a basic time series and plot it using pandas syntax, i get an error that "series is not defined" as such I'm not sure if it is actually working

  In [1]: import matplotlib.pyplot as plt
  In [2]: ts = Series(randn(1000), index=date_range('1/1/2000', periods=1000))
  In [3]: ts = ts.cumsum()
  In [4]: ts.plot()
6 Answers

First upgrade pip version using command python -m pip install --upgrade pip after that just do pip install pandas

Note : - For pandas python-dateutil, numpy, setuptools and pytz module required.

To install pandas for Python 3, you may need to use the python-pandas package. While NumPy does not require any other packages, pandas does, so make sure you get them all. The installation order is not important. ... The disadvantage is that you need to install each package individually, and there is no package manager for handling dependencies.

To Install numpy pip install numpy

To install pandas pip install pandas

Related