티스토리 뷰
반응형
celery result_backend를 maria로 사용하려고 설정 후 task 실행 중에 에러남
대부분 pip install mysqlclient 설치하면 끝나는 것 같은데
pkg-config 어쩌구 함
pip install mysqlclient
Collecting mysqlclient
Using cached mysqlclient-2.2.0.tar.gz (89 kB)
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
╰─> [24 lines of output]
/bin/sh: pkg-config: command not found
/bin/sh: pkg-config: command not found
Trying pkg-config --exists mysqlclient
Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.
Trying pkg-config --exists mariadb
Command 'pkg-config --exists mariadb' returned non-zero exit status 127.
Traceback (most recent call last):
File "/Users/j0n9m1n1/opt/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/Users/j0n9m1n1/opt/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/j0n9m1n1/opt/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/pf/rbrk07yj1k92mj6hm1x5hz300000gn/T/pip-build-env-rmxjxx14/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/private/var/folders/pf/rbrk07yj1k92mj6hm1x5hz300000gn/T/pip-build-env-rmxjxx14/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "/private/var/folders/pf/rbrk07yj1k92mj6hm1x5hz300000gn/T/pip-build-env-rmxjxx14/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 154, in <module>
File "<string>", line 48, in get_config_posix
File "<string>", line 27, in find_package_name
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.
brew install pkg-config 설치 하고 다시 pip에서 설치하여 완료
'Python' 카테고리의 다른 글
python class 생성 시 사용한 변수의 값을 내부에서 참조함 (0) | 2023.12.02 |
---|---|
mac m1, m2 anaconda locust ValueError: greenlet.greenlet size changed, may indicate binary incompatibility (0) | 2023.08.06 |
클라이언트 간 메시지 송수신 스터디(nginx + fastapi + celery + rabbitMQ) (0) | 2023.08.04 |
Python datetime 날짜의 월이 영어일때, 12시 pm, am처리 (0) | 2020.07.06 |
Baekjoon 백준 12790번 Mini Fantasy War (0) | 2020.02.21 |
댓글
티스토리 방명록
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
Blog is powered by
Tistory / Designed by
Tistory
Contact: j0n9m1n1@gmail.com
Contact: j0n9m1n1@gmail.com