본문 바로가기
python

python pip error: Microsoft Visual C++ 14.0 or greater is required

by 젤리아드 2024. 12. 26.
반응형

pip install로 python 패키지 설치 중 발생한 에러

error: Microsoft Visual C++ 14.0 or greater is required.
Get it with "Microsoft C++ Build Tools"
: https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel
Failed to build
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects
에러 메시지

에러를 해결하려면 먼저 에러 메시지에 적힌 공식 웹주소로 접속합니다.(↓ 링크)

https://visualstudio.microsoft.com/visual-cpp-build-tools/

 

Microsoft C++ Build Tools - Visual Studio

The Microsoft C++ Build Tools provides MSVC toolsets via a scriptable, standalone installer without Visual Studio. Recommended if you build C++ libraries and applications targeting Windows from the command-line (e.g. as part of your continuous integration

visualstudio.microsoft.com

 

Microsoft C++
Build Tools
독립 실행형 MSVC 컴파일러, 라이브러리 및 스크립트
Build Tools 다운로드
다운로드 버튼

웹사이트에서 "Build Tools 다운로드" 버튼을 누릅니다.

다운로드 완료 후 다운로드한 파일을 실행합니다.(vs_BuildTools.exe)

 

사용자 계정 컨트롤
이 앱이 디바이스를 변경할 수 있도록 허용하시겠어요?
Visual Studio Installer
확인된 게시자: Microsoft Corporation
파일 원본: 이 컴퓨터의 하드 드라이브
자세한 내용 표시
예, 아니오
UAC 메시지

"이 앱이 디바이스를 변경할 수 있도록 허용하시겠어요?" 메시지가 나오면 버튼을 누릅니다.

 

설치 -- Visual Studio Build Tools
워크로드, 개별 구성 요소, 언어 팩, 설치 위치
! 설치할 항목을 선택하는 데 도움이 필요하십니까? 추가 정보
데스크톱 및 모바일(4)
C++를 사용한 데스크톱 개발 [V]
MSVC, Clang, CMake 또는 MSBuild 등 선택한 도구를 사용하여 Windows용 최신 C++ 앱을 빌드합니다.
체크

설치 화면에서 "C++를 사용한 데스크톱 개발" 설치 항목에 체크 표시합니다.

 

지원되지 않는 구성 요소 제거(R)
필요한 전체 공간 6.82GB
다운로드하는 동안 설치, 설치
설치 버튼

설치 화면 우측 하단에 있는 설치 버튼을 누르면 설치가 시작됩니다.

 

Visual Studio Installer
설치됨, 사용 가능
Visual Studio Build Tools, 일시 중지
다운로드 및 확인 중(1.13GB/1.77GB)
63%

패키지 설치 중(133/360개)
31%
설치 중

설치가 끝날 때까지 기다립니다.

 

Visual Studio Installer
설치됨, 사용 가능
모든 설치가 최신 상태입니다.

Visual Studio Build Tools
Visual Studio Build Tools에서는 Visual Studio IDE 없이 네이티브 및 관리 MSBuild 기반 애플리케이션을 빌드할 수 있습니다.
Visual C++ 컴파일러 및 라이브러리, MFC, ATL, C++/CLI 지원 등과 같은 도구를 설치하는 옵션이 있습니다.
릴리스 정보

수정(M)
시작(L)
자세히 ▼
설치 완료

"모든 설치가 최신 상태입니다" 메시지가 표시되면 설치가 완료된 것입니다.

설치 화면 우측 상단에 있는 X 버튼을 눌러서 설치 프로그램을 종료합니다.

 

pip install 명령어를 사용하여 설치 에러가 났던 python 패키지를 다시 설치해 봅니다.

Visual C++ 관련 에러는 더 이상 발생하지 않을 것입니다.

반응형

댓글