IT 기타
Can not find valid pkg-config name. 수정 및 해결 방법
빅경
2024. 8. 23. 18:48
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
반응형