Skip to content Skip to sidebar Skip to footer

Pandas Valueerror: Numpy.dtype Has The Wrong Size, Try Recompiling

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 erro

Solution 1:

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...

Solution 2:

sudo pip install pandas
sudo easy_install --upgrade numpy

should also realign everything.

Solution 3:

Uninstall both numpy and pandas and try installing pandas from source.

pip uninstall numpy
pip uninstall pandas
git clone git://github.com/pydata/pandas.git
cd pandas
python setup.py install

This worked for me and I am now able to use the latest version of pandas.

Solution 4:

open 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.

>>> import numpy as np
>>> np.__version__
>>> np.__file__
#if numpy version <= 1.7 would have the error#find the file and delete it from (np.__file__)

then install the latest numpy if you don't have it

Solution 5:

you can install pandas from its git repo without having to explicitly clone it

pip install git+https://github.com/pydata/pandas.git

that worked for me.

Post a Comment for "Pandas Valueerror: Numpy.dtype Has The Wrong Size, Try Recompiling"