해결된 질문
작성
·
76
·
수정됨
0
강의 시점: 섹션1 > 실습을 위한 환경 설정 방법에서 약 1분 16초
내용: 제공해주신 pyproject.toml에서 저는 파이썬 3.13 버전으로 설치되어 이 부분만 수정해 install하였습니다.
그랬더니 아래와 같이 numpy 설치 에러 문구가 뜨는데 왜 그런걸까요?
해결 방법이 있을까요?
에러 메시지
- Installing numpy (1.26.4): Failed
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke build_wheel
Note: This error originates from the build backend, and is likely not a problem with poetry but one of the following issues with numpy (1.26.4)
- not supporting PEP 517 builds
- not specifying PEP 517 build requirements correctly
- the build requirements are incompatible with your operating system or Python version
- the build requirements are missing system dependencies (eg: compilers, libraries, headers).
You can verify this by running pip wheel --no-cache-dir --use-pep517 "numpy (==1.26.4)".
답변 1
0
안녕하세요. 판다스 스튜디오입니다.
파이썬 3.13은 아직 많은 패키지들이 지원하지 않고 있습니다.
따라서, 3.11 또는 3.12 버전으로 개발환경을 구성해야 하는데, poetry는 해당 버전의 파이썬을 추가 설치해야 하는 번거로움이 있습니다.
파이썬 3.12를 별도로 설치하지 않고 사용하는 방법으로는 uv 패키지 관리자가 있습니다.
아래 내용을 참조해서 설치해보세요.
macOS 또는 Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows (PowerShell):
irm https://astral.sh/uv/install.ps1 | iex
pip을 통한 설치:
pip install uv
프로젝트 폴더 생성 및 초기화:
uv init 프로젝트명
프로젝트 폴더 이동:
cd 프로젝트명
특정 Python 버전으로 가상 환경 생성:
uv venv --python=3.12
# 리눅스/맥OS
source .venv/bin/activate
# 윈도우
.venv\Scripts\activate.bat
uv add numpy pandas matplotlib