Pandas import error

easy-install, pandas, python-2.7

Solution

Maybe you interrupted pandas install , retry using pip :

First install pip (if you haven't done it already) :

easy_install pip

then reinstall pandas:

pip install pandas --upgrade

Hope it helps

Problem

I tried installing pandas using `easy_install` and it claimed that it successfully installed the pandas package in my Python Directory. I switch to IDLE and try `import pandas` and it throws me the following error - ` Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import pandas File "C:\Python27\lib\site-packages\pandas-0.12.0-py2.7-win32.egg\pandas\__init__.py", line 6, in <module> from . import hashtable, tslib, lib File "numpy.pxd", line 157, in init pandas.hashtable (pandas\hashtable.c:20282) ValueError: numpy.dtype has the wrong size, try recompiling ` Please help me diagnose the error. FYI: I have already installed the `numpy` package

Original source