1. ホーム
  2. Qt

ubuntu installationEnvironmentError: mysql_config not found エラー

2022-02-13 20:54:46
Complete output from command python setup.py egg_info:
    sh: 1: mysql_config: not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-4mLxpd/MySQL-python/setup.py", line 17, in <module>
        metadata, options = get_config()
      File "/tmp/pip-build-4mLxpd/MySQL-python/setup_posix.py", line 43, in get_config
        libs = mysql_config("libs_r")
      File "/tmp/pip-build-4mLxpd/MySQL-python/setup_posix.py", line 25, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    EnvironmentError: mysql_config not found

回避策

sudo apt-get install libmysqlclient-dev





そして、mysql_configのパス( /usr/bin/mysql_config )

sudo updatedb
locate mysql_config





では、戻ってインストールします、OK〜。