ubuntu pip install MySQL-python mysql_config not found

在安装 mysql-python时,会出现:

sh: mysql_config: not found Traceback (most recent call last):   File "setup.py", line 15, in <module>     metadata, options = get_config()   File "/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config     libs = mysql_config("libs_r")   File "/home/zhxia/apps/source/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
sudo apt-get install libmysqlclient-dev
上一篇:自动测试工具SilkTest全面介绍


下一篇:poj 2446 Chessboard (二分匹配)