Command "python setup.py egg info" failed with error code 1 in

1 개요[ | ]

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-j3n5g7ye/mysqlclient/
user01@localhost:~$ pip3 install mysql
Collecting mysql
  Using cached https://files.pythonhosted.org/packages/bf/5f/b574ac9f70811df0540e403309f349a8b9fa1a25d3653824c32e52cc1f28/mysql-0.0.2.tar.gz
Collecting mysqlclient (from mysql)
  Using cached https://files.pythonhosted.org/packages/d0/97/7326248ac8d5049968bf4ec708a5d3d4806e412a42e74160d7f266a3e03a/mysqlclient-1.4.6.tar.gz
    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-j3n5g7ye/mysqlclient/setup.py", line 16, in <module>
        metadata, options = get_config()
      File "/tmp/pip-build-j3n5g7ye/mysqlclient/setup_posix.py", line 61, in get_config
        libs = mysql_config("libs")
      File "/tmp/pip-build-j3n5g7ye/mysqlclient/setup_posix.py", line 29, in mysql_config
        raise EnvironmentError("%s not found" % (_mysql_config_path,))
    OSError: mysql_config not found
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-j3n5g7ye/mysqlclient/

2 조치[ | ]

$ sudo apt install libmysqlclient-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libmysqlclient-dev
0 upgraded, 1 newly installed, 0 to remove and 89 not upgraded.
Need to get 987 kB of archives.
After this operation, 6009 kB of additional disk space will be used.
Get:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmysqlclient-dev amd64 5.7.28-0ubuntu0.18.04.4 [987 kB]
Fetched 987 kB in 0s (3635 kB/s)           
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libmysqlclient-dev.
(Reading database ... 155767 files and directories currently installed.)
Preparing to unpack .../libmysqlclient-dev_5.7.28-0ubuntu0.18.04.4_amd64.deb ...
Unpacking libmysqlclient-dev (5.7.28-0ubuntu0.18.04.4) ..................................] 
Setting up libmysqlclient-dev (5.7.28-0ubuntu0.18.04.4) .................................] 
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...########################............]

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}