2016-11-01 2 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 명령은 잠시 동안 실행되지만 나는 다음과 같은 오류 얻을 : 나는 오류 메시지에 대해 설명으로 마이크로 소프트 윈도우 SDK 7.1을 설치하려고 한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\ 

합니다. 명령 프롬프트와 컴퓨터를 다시 시작했지만 여전히이 오류 메시지가 나타납니다. 내가 뭘 놓치고 있니?

+0

다른 옵션은 Windows 용 아나콘다를 설치하는 것입니다.이 패키지는 번거 로움없이 한 번에 모든 패키지를 설치합니다 : https://www.continuum.io/downloads –

답변

0

문제점을 발견했습니다. Microsoft Windows SDK 7.1 용 다운로드 파일을 사용하면 .Net 4.x가 아직 설치되어 있지 않아도 "설치"할 수 있습니다. 나는 설치 과정에서 클릭이 행복해 졌음에 틀림 없다. 그래서 SDK 7.1을위한 설치는 정말 빠르며 필요한 것을 설치하지 않았습니다. 백업 할 때 Microsoft .NET Framework 4를 this URL에서 먼저 설치 한 다음 작동 한 지침에 따라 SDK 7.1을 설치했습니다.

관련 문제