安装mysql-python出现mysql_config not found错误

原创
2015/03/28 12:00
阅读数 108

安装sudo apt-get install 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
解决方法:
sudo apt-get install libmysqlclient-dev

特此记录下

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部