easy_install EnvironmentError: mysql_config not foundWhen attempting to run 'easy_install MySQL-python' I get the following error message:
How do I install the python mysql libraries using easy_install? What would cause this error? |
Ubuntu or Debiansudo apt-get install libmysqlclient16 libmysqlclient16-dev python-dev |
I did that and now I'm getting the following error ...Searching for MySQL-python Reading http://www.pylonshq.com/download/ Reading http://pypi.python.org/simple/MySQL-python/ Reading http://sourceforge.net/projects/mysql-python Best match: MySQL-python 1.2.3 Downloading http://download.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.3.tar.gz Processing MySQL-python-1.2.3.tar.gz Running MySQL-python-1.2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-bM3FNF/MySQL-python- 1.2.3/egg-dist-tmp-y4kUGV warning: no files found matching 'MANIFEST' warning: no files found matching 'ChangeLog' warning: no files found matching 'GPL' In file included from _mysql.c:29:0: pymemcompat.h:10:20: fatal error: Python.h: No such file or directory compilation terminated. error: Setup script exited with error: command 'gcc' failed with exit status 1 |
Website screenshot