2016-11-01 7 views
0

私はWindows 7(64ビット)を使用しており、Python 3.4とSklearn pythonパッケージ[NumPy(> = 1.6.1)、SciPy(> 0.9)]。 Python 3.4にマッチしたオンラインで見つかった.whlファイルからNumpyとSciPyをインストールしました。私はpip install sklearnを呼び出すことによってsklearnパッケージをインストールしようとしています(これは、Python 3.xが必要なので、Python(x.y)を使用せずにインストールしています)。 pip install sklearnコマンドは、しばらくの間、実行されますが、その後、私は次のエラーを取得する:Windows 7のソースからSklearnをインストールする

copying sklearn\tests\__init__.py -> build\lib.win-amd64-3.4\sklearn\tests 
running build_clib 
customize MSVCCompiler 
Missing compiler_cxx fix for MSVCCompiler 
customize MSVCCompiler using build_clib 
building 'libsvm-skl' library 
compiling C sources 
error: Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1": www.microsoft.com/download/details.aspx?id=8279 

---------------------------------------- 
Command "c:\python34\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\jjaaae\\AppData\\Local\\Temp\\pip-build-43xaawp2\\scikit-learn\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\jjaaae\AppData\Local\Temp\pip-7i3ghuri-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\jjaaae\AppData\Local\Temp\pip-build-43xaawp2\scikit-learn\ 

私はそれがエラーメッセージに記述としてのMicrosoft Windows SDK 7.1をインストールしようとしています。私はまた、コマンドプロンプトと私のコンピュータを再起動しましたが、私はまだこのエラーメッセージが表示されます。私は何が欠けていますか?

+0

その他のオプションは、Windows用のanacondaをインストールすることです。これらのパッケージは一度にすべてのパッケージを一度にインストールします。https://www.continuum.io/downloads –

答えて

0

問題が見つかりました。 Microsoft Windows SDK 7.1のダウンロードファイルでは、.Net 4.xがまだインストールされていなくても "インストール"できます。私はインストール中にクリック幸せを得て、その警告を逃してしまったに違いない。 SDK 7.1のインストールはとても速く、必要なものをインストールしませんでした。私がバックアップしたとき、最初にthis URLからMicrosoft .NET Framework 4をインストールし、それが機能した命令につきSDK 7.1をインストールしました。

関連する問題