Python 3.6安装statsmodels失败,退出状态为127

Python 3.6安装statsmodels失败,退出状态为127,python,statsmodels,Python,Statsmodels,试图通过pip install statsmodels安装statsmodels。我正在使用Win10和Python 3.6。我已经安装了NumPy、SciPy、Pandas和所有其他依赖项。我有VisualStudio社区2017安装了C++和Python相关的东西。 我得到这个错误: ... building 'statsmodels.tsa.kalmanf.kalman_loglike' extension creating build\temp.win-amd6

试图通过
pip install statsmodels
安装statsmodels。我正在使用Win10和Python 3.6。我已经安装了NumPy、SciPy、Pandas和所有其他依赖项。我有VisualStudio社区2017安装了C++和Python相关的东西。 我得到这个错误:

    ...

    building 'statsmodels.tsa.kalmanf.kalman_loglike' extension
    creating build\temp.win-amd64-3.6
    creating build\temp.win-amd64-3.6\Release
    creating build\temp.win-amd64-3.6\Release\statsmodels
    creating build\temp.win-amd64-3.6\Release\statsmodels\tsa
    creating build\temp.win-amd64-3.6\Release\statsmodels\tsa\kalmanf
    cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Istatsmodels/src -I"c:\program files\python36\lib\site-packages\numpy\core\include" -I"c:\program files\python36\include" -I"c:\program files\python36\include" /Tcstatsmodels/tsa/kalmanf/kalman_loglike.c /Fobuild\temp.win-amd64-3.6\Release\statsmodels/tsa/kalmanf/kalman_loglike.obj

    error: Command "cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Istatsmodels/src -I"c:\program files\python36\lib\site-packages\numpy\core\include" -I"c:\program files\python36\include" -I"c:\program files\python36\include" /Tcstatsmodels/tsa/kalmanf/kalman_loglike.c /Fobuild\temp.win-amd64-3.6\Release\statsmodels/tsa/kalmanf/kalman_loglike.obj" failed with exit status 127

    ----------------------------------------
Command ""c:\program files\python36\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\me\\AppData\\Local\\Temp\\pip-build-7jsmv60z\\statsmodels\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\me\AppData\Local\Temp\pip-kpya7eq2-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\me\AppData\Local\Temp\pip-build-7jsmv60z\statsmodels\
引起我注意的是“退出状态127失败”部分,但我找不到任何与此相关的有用信息


为什么会这样?我能做什么?

我建议使用或进行非常简单的安装。水蟒带来了所有需要的包裹

对于Miniconda,我建议创建一个环境:

conda create -n py36 python=3.6
激活它:

conda activate py36
并安装您的软件包:

(py36) conda install numpy scipy pandas statsmodel

我建议使用或进行非常简单的安装。水蟒带来了所有需要的包裹

对于Miniconda,我建议创建一个环境:

conda create -n py36 python=3.6
激活它:

conda activate py36
并安装您的软件包:

(py36) conda install numpy scipy pandas statsmodel

你明白了吗?你明白了吗?