inflearn logo
강의

Course

Instructor

[New Revised Edition] This is Real Crawling - Basic Course

pandas 설치하는데 오류가 나서요

2704

ldh

2 asked

0

pip install pandas 명령을 입력하면 다음과 같은 오류가 발생해요.

Collecting pandas

Using cached pandas-2.2.2.tar.gz (4.4 MB)

Installing build dependencies ... done

Getting requirements to build wheel ... done

Installing backend dependencies ... done

Preparing metadata (pyproject.toml) ... error

error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.

│ exit code: 1

╰─> [12 lines of output]

+ meson setup C:\Users\user\AppData\Local\Temp\pip-install-t_73zgrt\pandas_07f940e4918444ecb3ee5b4569956cfa C:\Users\user\AppData\Local\Temp\pip-install-t_73zgrt\pandas_07f940e4918444ecb3ee5b4569956cfa\.mesonpy-3kj1_j_g\build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=C:\Users\user\AppData\Local\Temp\pip-install-t_73zgrt\pandas_07f940e4918444ecb3ee5b4569956cfa\.mesonpy-3kj1_j_g\build\meson-python-native-file.ini

The Meson build system

Version: 1.2.1

Source dir: C:\Users\user\AppData\Local\Temp\pip-install-t_73zgrt\pandas_07f940e4918444ecb3ee5b4569956cfa

Build dir: C:\Users\user\AppData\Local\Temp\pip-install-t_73zgrt\pandas_07f940e4918444ecb3ee5b4569956cfa\.mesonpy-3kj1_j_g\build

Build type: native build

Project name: pandas

Project version: 2.2.2

..\..\meson.build:2:0: ERROR: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

A full log can be found at C:\Users\user\AppData\Local\Temp\pip-install-t_73zgrt\pandas_07f940e4918444ecb3ee5b4569956cfa\.mesonpy-3kj1_j_g\build\meson-logs\meson-log.txt

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: metadata-generation-failed

× Encountered error while generating package metadata.

╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.

hint: See above for details.

C:\Program Files (x86)\Microsoft Visual Studio 폴더가 없던데 어떻게 해야 한나요.

python 웹-크롤링

Answer 1

0

communityai8509

안녕하세요, 인프런 AI 인턴입니다.
님의 문제는 pandas 설치 과정에서 Meson 빌드 시스템이 vswhere.exe를 찾을 수 없다는 것으로, 이는 일반적으로 Microsoft Visual Studio의 구성 요소 중 하나를 찾을 수 없음을 나타냅니다. Microsoft Visual Studio에는 C++ 빌드 도구나 관련 구성 요소가 포함되어 있으며, pandas를 비롯한 일부 Python 패키지는 이러한 컴파일러에 의존하여 네이티브 확장을 빌드할 수 있습니다.

해결 방법은 다음과 같습니다:
1. Microsoft Visual Studio를 설치하거나 업데이트하세요. Visual Studio는 Microsoft의 공식 웹사이트에서 다운로드할 수 있습니다.
2. 설치 중 또는 Visual Studio Installer를 통해 C++ 빌드 도구와 관련 구성 요소를 포함시키는 옵션을 선택하세요. 이 때, Windows 10 SDK와 같은 필요한 구성 요소도 함께 설치되는지 확인하세요.

만약 Visual Studio를 설치하기 원치 않는다면, Build Tools for Visual Studio를 설치할 수도 있습니다. 이 도구는 Visual Studio의 전체 설치 없이도 C++ 컴파일러와 필요한 빌드 도구를 제공합니다.

  • Microsoft Visual Studio를 설치하거나 업데이트한 후, 시스템을 재시작하고 pandas 설치를 다시 시도해 보세요.

이러한 절차를 거친 후에도 문제가 해결되지 않는 경우, pip install pandas 대신 pandas의 바이너리 패키지 버전을 설치하는 것을 고려해 볼 수 있습니다. 예를 들어, pip install pandas --only-binary :all: 명령을 사용하여 컴파일 과정 없이 pandas를 설치할 수 있습니다.

만약 추가 도움이 필요하다면, 개발 환경, Python 버전, pip 버전 등 자세한 정보를 함께 제공해 주세요.

Live server 를 이용 해보고 싶은데 확장메뉴 설치가 막혀 있어요

0

62

2

'팀 단위 AI 업무 혁신' 자문 관련하여 문의드리고자 합니다. (연락처 요청)

0

38

1

import requests from bs4 import BeatifulSoup 이 단계에서 안 되네요

0

76

2

requests 관련 질문

1

136

2

설치 관련

0

130

2

vs code 결과출력이 안됩니다

0

143

1

크롤링 관련 질문입니다

0

209

2

word wrap 체크 후에도 콘솔 한줄로 출력되는현상

0

190

1

주피터에서 pip오류가 계속납니다

0

1084

3

강의 "requests, Beautifulsoup4 사용법 빠르게 알아보기"에서 질문이있습니다.

0

170

2

네이버쇼핑 검색창 넘어가기전 팝업창이 안사라져요

0

364

1

html주소를 다른 컴터에서도 접속하기

0

241

2

실행오류

0

213

1

네이버쇼핑 무한스크롤 안되시는분들 모바일네이버로 실습해보세요

0

263

1

뉴스 페이지에 페이지 번호가 없는데 어떻게 가져오나요?

0

231

2

네이버 쇼핑에 팝업창이 뜨기 시작했어요 도와주세요 ㅠㅠ

0

719

3

셀레니움 실습 시 창이 자동 차단되면서 꺼집니다.

0

663

2

낮은 가격순을 클릭하는 문을 추가하고싶습니다.

0

303

2

pip는 내부 또는 외부명령 ,실행할 수 있는 프로그램

0

3387

2

이런오류는 어떤 오류인가요

0

658

1

창이 두개떠요/쇼핑검색도 안되요 ㅜ

0

333

2

약간 변태(?)같지만 해당 코드를 깔끔하게 함수로 리팩토링해보았습니다

0

338

2

과제 답안을 보지않고 스스로 구글링해서 만든 웹 크롤링 프로그램(10페이지 단위) 코드입니다.

0

757

2

자동 로그인시 자동입력방지문자 페이지로 연결

0

2277

3