Anaconda error importing ExponentialSmoothing


#1

Hi,

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


#2

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

Cheers


#3

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

OS: Windows 10


#4

There are some additional steps which you must follow for windows.
Follow this link
http://www.statsmodels.org/stable/install.html


#5

I am installing on anaconda environment…

Getting this error.

No module named ‘numpy.distutils._msvccompiler’ in numpy.distutils; trying from
distutils
building ‘statsmodels.tsa.kalmanf.kalman_loglike’ extension
error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++
Build Tools”: http://landinghub.visualstudio.com/visual-cpp-build-tools


#6

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

Steps:

  1. conda remove statsmodels (if you have statsmodel already)
  2. git clone git://github.com/statsmodels/statsmodels.git
  3. cd statsmodels
  4. python setup.py install
    5. if you get build error then follow this link (https://www.scivision.co/python-windows-visual-c++-14-required/)
    6. python setup.py build_ext --inplace
  5. cd …
  6. open python and execute “from statsmodels.tsa.api import ExponentialSmoothing”

#7

Great @jprakash0205

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

Cheers


#8

Hi jprakash0205,

I followed steps you mentioned on 64 bit Windows and no luck. I’m getting below error.

I’m using Anaconda 3.6 installation.

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