728x90
반응형
pip로 mysqlclient를 설치하면서 다음과 같은 에러가 발생하였습니다.
Collecting mysqlclient Downloading mysqlclient-2.2.4.tar.gz (90 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.4/90.4 KB 4.1 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [27 lines of output] /bin/sh: 1: pkg-config: not found .... Exception: Can not find valid pkg-config name. Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. |
해결방법
sudo apt-get install pkg-config python3-dev default-libmysqlclient-dev build-essential |
728x90
반응형
'IT 기타' 카테고리의 다른 글
Windows(윈도우) 텔넷(Telnet) 클라이언트 켜기/활성화 (2) | 2024.09.08 |
---|---|
cc: not found error 해결 방법 (0) | 2024.08.23 |
[IntelliJ] Java JAR 파일 만들기/빌드하기/실행하기/생성하기 (0) | 2024.06.04 |
정규표현식 - Regular Expression (0) | 2024.05.16 |