[mysql] Error | pip install mysqlclient

Hyeseongยท2021๋…„ 1์›” 12์ผ
0

helpme

๋ชฉ๋ก ๋ณด๊ธฐ
6/7

ERROR ๐Ÿ˜Ž

(dj_venv) hyeseong@hyeseong-H310M-DS2V:~/Projects/baemin_store-backend$ pip install mysqlclient
Collecting mysqlclient
  Using cached mysqlclient-2.0.3.tar.gz (88 kB)
    ERROR: Command errored out with exit status 1:
     command: /home/hyeseong/miniconda3/envs/dj_venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qgu62uxl/mysqlclient_3bcf621c3c1644ecb213405b223c92bc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qgu62uxl/mysqlclient_3bcf621c3c1644ecb213405b223c92bc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ng1i0365
         cwd: /tmp/pip-install-qgu62uxl/mysqlclient_3bcf621c3c1644ecb213405b223c92bc/
    Complete output (15 lines):
    /bin/sh: 1: mysql_config: not found
    /bin/sh: 1: mariadb_config: not found
    /bin/sh: 1: mysql_config: not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-qgu62uxl/mysqlclient_3bcf621c3c1644ecb213405b223c92bc/setup.py", line 15, in <module>
        metadata, options = get_config()
      File "/tmp/pip-install-qgu62uxl/mysqlclient_3bcf621c3c1644ecb213405b223c92bc/setup_posix.py", line 70, in get_config
        libs = mysql_config("libs")
      File "/tmp/pip-install-qgu62uxl/mysqlclient_3bcf621c3c1644ecb213405b223c92bc/setup_posix.py", line 31, in mysql_config
        raise OSError("{} not found".format(_mysql_config_path))
    OSError: mysql_config not found
    mysql_config --version
    mariadb_config --version
    mysql_config --libs
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

SOLUCTION

๐ŸฆŒ

profile
์–ด์ œ๋ณด๋‹ค ์˜ค๋Š˜ ๊ทธ๋ฆฌ๊ณ  ์˜ค๋Š˜ ๋ณด๋‹ค ๋‚ด์ผ...

1๊ฐœ์˜ ๋Œ“๊ธ€

comment-user-thumbnail
2022๋…„ 8์›” 24์ผ

์•ˆ๋…•ํ•˜์„ธ์š”, ํ˜น์‹œ mac์„ ์“ฐ๋Š” ๊ฒฝ์šฐ์— sudo apt-get ์ปค๋งจ๋“œ๊ฐ€ ์—†๋Š”๋ฐ, ์–ด๋–ค ๋ช…๋ น์–ด๋ฅผ ๋„ฃ์œผ๋ฉด ๋˜๋‚˜์š”?

๋‹ต๊ธ€ ๋‹ฌ๊ธฐ