pandas ValueError: numpy.dtype has the wrong size, try recompiling

后端 未结 6 1969
南方客
南方客 2020-12-10 12:34

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 happ

6条回答
  •  渐次进展
    2020-12-10 13:01

    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

提交回复
热议问题