Search code examples
pythonenthoughtstatsmodels

Error when importing Pandas from python canopy


I have installed Python Canopy 2.7 and have made it the default. When I start python I see the version from "Enthought Canopy Python 2.7.6 | 64-bit |"

I can import pandas and numpy... but when I try to import statsmodels.api I get this error

ImportError: No module named statsmodels

I have checked the Enthought website and in theory statsmodels would be inclueded in the express distribution.

Thanks in advance for any help!


Solution

  • Enthought Canopy comes bundled with a package manager. Use that package manager to install the module you require.

    You are able to import pandas and numpy, since the installation comes bundled with these modules along with matplotlib etc.