私は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をインストールしようとしています。私はまた、コマンドプロンプトと私のコンピュータを再起動しましたが、私はまだこのエラーメッセージが表示されます。私は何が欠けていますか?
その他のオプションは、Windows用のanacondaをインストールすることです。これらのパッケージは一度にすべてのパッケージを一度にインストールします。https://www.continuum.io/downloads –