I took a new clean install of OSX 10.9.3 and installed pip, and then did
pip install pandas pip install numpy
Both installs seemed to be perfectly happy, and ran without any errors (though there were a zillion warnings). When I tried to run a python script with import pandas, I got the following error:
numpy.dtype has the wrong size, try recompiling Traceback (most recent call last): File "./moen.py", line 7, in import pandas File "/Library/Python/2.7/site-packages/pandas/__init__.py", line 6, in from . import hashtable, tslib, lib File "numpy.pxd", line 157, in init pandas.hashtable (pandas/hashtable.c:22331) ValueError: numpy.dtype has the wrong size, try recompiling
How do I fix this error and get pandas to load properly?
should also realign everything.
You can install previous version of pandas.
In my situation it solved problem...
Uninstall both numpy and pandas and try installing pandas from source.
This worked for me and I am now able to use the latest version of pandas.
pip uninstall numpy
uninstalls the old version of numpypip install numpy
finds and installs the latest version of numpyopen your python, check the imported version of your numpy.
It is very likely that you have multiple numpy installed and python always grab the old one, just make sure to delete the old one would fix the problem.
then install the latest numpy if you don't have it
you can install pandas from its git repo without having to explicitly clone it
that worked for me.