(to slightly increase my comment)
Numpy developers typically have a backward compatible binary interface (ABI) retention policy. However, ABI does not support transitions.
What does it mean:
A package that uses numpy in a compiled extension compiles against a specific version of numpy. A future version of numpy will be compatible with a compiled package extension (see below for an exception). Distributors of these other packages do not need to recompile their package against newer versions of numpy, and users do not need to update these other packages when users upgrade to a newer version of numpy.
However, this does not go in the other direction. If a package is compiled against a specific version of numpy, say 1.7, then there is no guarantee that the binaries of this package will work with older versions of numpy, say 1.6, and very often or most often they will not.
Binary distribution of packages such as pandas and statsmodels that are compiled against the recent version of numpy will not work if an older version of numpy is installed. Some packages, like matplotlib, if I remember correctly, compile their extensions against the oldest version of numpy that they support. In this case, users with the same old or newer version of numpy can use these binaries.
The error message in the question is a typical result of binary incompatibility.
The solution is to get a binary compatible version, either by updating numpy, or at least the version that pandas or statsmodels were compiled with, or recompiling pandas and statsmodels against an older version of numpy that is already installed.
ABI backward compatibility violation:
Sometimes improvements or refactoring in numpy break ABI backwards compatibility. This happened (unintentionally) with numpy 1.4.0. As a result, users who upgraded numpy to 1.4.0 had binary incompatibilities with all other compiled packages that were compiled against a previous version of numpy. To do this, all packages with binary extensions using numpy must be recompiled to work with an incompatible version of ABI.
user333700 Aug 21 '13 at 23:32 2013-08-21 23:32
source share