简体   繁体   English

statsmodels安装:numpy.distutils中没有名为“ numpy.distutils._msvccompiler”的模块; 从distutils尝试

[英]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): 在Windows 10中安装statsmodels时弹出错误(安装了python 3.6.2):

python setup.py install

Before that, numpy has been installed: 在此之前,已经安装了numpy

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. 没有错误,我认为这是成功的。 statsmodels的安装仍然存在statsmodels安装的错误。

I did install MS c++ compiler (2015). 我确实安装了MS c ++编译器(2015)。 Also I installed latest Anaconda (python 3.6.1) and it did not help. 我也安装了最新的Anaconda(python 3.6.1),但没有帮助。 The following is a list of VC++ compilers installed. 以下是已安装的VC ++编译器的列表。

在此处输入图片说明

按照此处的说明安装scipy之后, statsmodels已成功安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM