sh: mysql_config: not found
Traceback (most recent call last):
File "setup.py", line 15, in <module>
metadata, options = get_config()
File "/web/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "/web/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
这是因为缺少 libmysqlclient - dev
以Ubuntu为例:
假如已经安装 debian / ubuntu: sudo apt - get install mysql
mysql-config是在不同的模块,并不在mysql里面。
sudo apt-get install libmysqlclient-dev
libmysqld-dev