Ubuntu mysqlclient 패키지 설치 오류

jw·2020년 10월 18일
1

🚫 pip로 mysqlclient 설치중 에러발생

Complete output from command python setup.py egg_info:
    /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-build-repwbdtp/mysqlclient/setup.py", line 15, in <module>
        metadata, options = get_config()
      File "/tmp/pip-build-repwbdtp/mysqlclient/setup_posix.py", line 65, in get_config
        libs = mysql_config("libs")
      File "/tmp/pip-build-repwbdtp/mysqlclient/setup_posix.py", line 31, in mysql_config
        raise OSError("{} not found".format(_mysql_config_path))
    OSError: mysql_config not found
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-repwbdtp/mysqlclient/

💡 apt로 추가 패키지 설치

sudo apt install libmysqlclient-dev
profile
개발 공부중입니다!

0개의 댓글