Anaconda error importing ExponentialSmoothing



I have installed anaconda 64bit. When i try to import ExponentialSmoothing like…
from statsmodels.tsa.api import ExponentialSmoothing

but getting ImportError: cannot import name ‘ExponentialSmoothing’

So, i followed the steps mentioned in the below link.

where i am getting visual c++ error.

Please advise


Did you follow the steps mentioned in the article for downloading the library ?
Also which OS are you working on ?



Yes i followed getting visual c ++ error during step build and step install.

OS: Windows 10


There are some additional steps which you must follow for windows.
Follow this link


I am installing on anaconda environment…

Getting this error.

No module named ‘numpy.distutils._msvccompiler’ in numpy.distutils; trying from
building ‘statsmodels.tsa.kalmanf.kalman_loglike’ extension
error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++
Build Tools”:


I am able to resolve the issue with little tweak in the steps in listed in the above article specific to windows OS

My OS: Windows 64bit


  1. conda remove statsmodels (if you have statsmodel already)
  2. git clone git://
  3. cd statsmodels
  4. python install
    5. if you get build error then follow this link (
    6. python build_ext --inplace
  5. cd …
  6. open python and execute “from statsmodels.tsa.api import ExponentialSmoothing”


Great @jprakash0205

Thanks for this piece of information. I will try to incorporate this into the article asap.