2017-07-06 19 views
1

pip install statsmodels経由で統計モデルをインストールしようとしています。私はWin10とPython 3.6を使用しています。私は既にNumPy、SciPy、Pandas、その他すべての依存関係をインストールしています。 Visual Studio Community 2017にC++とPython関連のものがインストールされています。 私はこのエラーを取得する:私の注意を引いた何Python 3.6のインストール中にstatsmodelsが終了ステータス127で失敗しました

... 

    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で失敗しました」でしたが、私はこれに関連する有益な何かを見つけることができませんでした。

どうしてですか?私に何ができる?

答えて

0

非常に簡単なインストールでは、AnacondaまたはMinicondaのいずれかを使用することをお勧めします。 Anacondaはそれに必要なパッケージをすべて提供します。

私は環境を作成することをお勧めしますMinicondaで

conda create -n py36 python=3.6 

はそれをアクティブにします

conda activate py36 

し、あなたのパッケージをインストールします。

(py36) conda install numpy scipy pandas statsmodel 
関連する問題