最佳答案
这是我得到的错误
(mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install mysql-pythonDownloading/unpacking mysql-pythonDownloading MySQL-python-1.2.3.tar.gz (70Kb): 70Kb downloadedRunning setup.py egg_info for package mysql-pythonsh: mysql_config: not foundTraceback (most recent call last):File "<string>", line 14, in <module>File "/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py", line 15, in <module>metadata, options = get_config()File "setup_posix.py", line 43, in get_configlibs = mysql_config("libs_r")File "setup_posix.py", line 24, in mysql_configraise EnvironmentError("%s not found" % (mysql_config.path,))EnvironmentError: mysql_config not foundComplete output from command python setup.py egg_info:sh: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py", line 15, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
----------------------------------------Command python setup.py egg_info failed with error code 1Storing complete log in /home/zjm1126/.pip/pip.log(mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install mysql-pythonDownloading/unpacking mysql-pythonRunning setup.py egg_info for package mysql-pythonsh: mysql_config: not foundTraceback (most recent call last):File "<string>", line 14, in <module>File "/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py", line 15, in <module>metadata, options = get_config()File "setup_posix.py", line 43, in get_configlibs = mysql_config("libs_r")File "setup_posix.py", line 24, in mysql_configraise EnvironmentError("%s not found" % (mysql_config.path,))EnvironmentError: mysql_config not foundComplete output from command python setup.py egg_info:sh: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py", line 15, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
----------------------------------------Command python setup.py egg_info failed with error code 1Storing complete log in /home/zjm1126/.pip/pip.log
我能做些什么来解决这个问题?