Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

statsmodels installation: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils

It seems to be a common problem but none of the answers seems help. The error is popping up when installing statsmodels with in Windows 10 (python 3.6.2 installed):

python setup.py install

Before that, numpy has been installed:

python numpy install

There was no error and I assume it was a success.But the installation of statsmodels still have the error with statsmodels installation.

I did install MS c++ compiler (2015). Also I installed latest Anaconda (python 3.6.1) and it did not help. The following is a list of VC++ compilers installed.

enter image description here

like image 565
user938363 Avatar asked Aug 03 '17 19:08

user938363


1 Answers

After installing the scipy following the instruction here , the statsmodels was installed successfully.

like image 78
user938363 Avatar answered Oct 11 '22 16:10

user938363