linux安装mysqlclient报错
错误信息
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Collecting mysqlclient Using cached mysqlclient - 1.3 . 12.tar .gz Complete output from command python setup.py egg_info: / bin / sh: mysql_config: command not found Traceback (most recent call last): File "<string>" , line 1 , in <module> File "/tmp/pip-build-ctrzre4u/mysqlclient/setup.py" , line 17 , in <module> metadata, options = get_config() File "/tmp/pip-build-ctrzre4u/mysqlclient/setup_posix.py" , line 44 , in get_config libs = mysql_config( "libs_r" ) File "/tmp/pip-build-ctrzre4u/mysqlclient/setup_posix.py" , line 26 , in mysql_config raise EnvironmentError( "%s not found" % (mysql_config.path,)) OSError: mysql_config not found |
解决办法
1
|
yum install mysql - devel |
学习时的痛苦是暂时的 未学到的痛苦是终生的