Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Pandas: can't find numpy.core.multiarray when importing pandas

I'm trying to get my code (running in eclipse) to import pandas.

I get the following error: "ImportError: numpy.core.multiarray failed to import"when I try to import pandas. I'm using python2.7, pandas 0.7.1, and numpy 1.5.1

like image 908
Dylan Cutler Avatar asked Mar 09 '12 22:03

Dylan Cutler


2 Answers

Just to make sure:

  • Did you install pandas from the sources ? Make sure it's using the version of NumPy you want.
  • Did you upgrade NumPy after installing pandas? Make sure to recompile pandas, as there can be some changes in the ABI (but w/ that version of NumPy, I doubt it's the case)
  • Are you calling pandas and/or Numpy from their source directory ? Bad idea, NumPy tends to choke on that.
like image 62
Pierre GM Avatar answered Nov 03 '22 00:11

Pierre GM


Try to update to numpy version 1.6.1. Helped for me!

like image 26
Qiau Avatar answered Nov 02 '22 23:11

Qiau