pandas ValueError: numpy.dtype has the wrong size, try recompiling
Question: 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?


Answer: You can install previous version of pandas.

    
    
    pip uninstall numpy
    pip uninstall pandas
    pip install pandas==0.13.1
    

In my situation it solved problem...

