Skip to content

Commit 19e0694

Browse files
committed
PEP error post
1 parent 5c271ed commit 19e0694

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

_posts/2024-09-19-error_PEP.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: "[Error] 라이브러리 설치 시 발생하는 PEP 오류 해결 방법"
3+
excerpt: "Solution for PEP 517 error by Junhyuns"
4+
5+
categories:
6+
- Python
7+
tags:
8+
- [Python, PEP 507, opencv, opencv-python]
9+
10+
toc: true
11+
toc_sticky: true
12+
13+
date: 2024-09-19
14+
last_modified_at: 2024-09-19
15+
16+
math: true
17+
---
18+
19+
파이썬에서 pip로 라이브러리 설치 시 가끔씩 아래와 같은 오류가 발생합니다. (e.g., opencv-python)
20+
21+
```python
22+
23+
ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly
24+
25+
```
26+
27+
해당 오류가 발생하는 경우 아래 명령어를 통해 pip, setuptools, wheel를 업그레이드 해줌으로써 해결이 가능합니다.
28+
29+
```python
30+
31+
pip install --upgrade pip setuptools wheel
32+
33+
```
34+
35+
만약 권한 문제로 위 명령어가 실행되지 않는다면 Windows의 cmd를 관리자권한으로 열어주신 후 명령어를 다시 입력해주시면 됩니다.
36+
37+
이후 원하시는 패키지를 설치하시면 해결됩니다.

0 commit comments

Comments
 (0)