Dylan Cutler
Dylan Cutler

Reputation: 81

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

Upvotes: 7

Views: 5946

Answers (4)

Qiau
Qiau

Reputation: 6175

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

Upvotes: 1

Pierre GM
Pierre GM

Reputation: 20339

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.

Upvotes: 1

Madison May
Madison May

Reputation: 2753

@user248237:

I second Keith's suggestion that its probably a 32/64 bit compatibility issue. I ran into the same problem just this week while trying to install a different module. Check the versions of each of your modules and make everything matches. In general, I would stick to the 32 bit versions -- not all modules have official 64 bit support. I uninstalled my 64 bit version of python and replaced it with a 32 bit one, reinstalled the modules, and haven't had any problems since.

Upvotes: 0

Keith C Campbell
Keith C Campbell

Reputation: 1046

Might be a 32-bit vs 64-bit compatibility issue. See: how to install numpy and scipy on OS X?

Despite the title, similar problems can occur with other operating systems if you mix 32-bit and 64-fit versions.

Upvotes: 0

Related Questions