I tried to install statsmodels in python. After installation, I checked with pip freeze. The package can be seen in the list.
When I am trying:
from statsmodels.tsa.api import ExponentialSmoothing, SimpleExpSmoothing, Holt
I am getting error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name ExponentialSmoothing
I have tried the following link also : link
I met the same situation, and the install process recommended in Nish's url didn't work for me. Here's how did I solve the problem (I'm using Mac OS).
Remove statsmodels library first, if you have installed: pip uninstall statsmodels
git init
, to initiate gitgit clone git://github.com/statsmodels/statsmodels.git
python setup.py install
python setup.py build_ext --inplace
python
in your terminal and then type from statsmodels.tsa.api import ExponentialSmoothing
, to see whether it can import successfully