I'm trying to do the "Writing Your first Django App" tutorial, and Django can't see MySQL-python, though it is installed globally.
I'm not sure if this is a virtualenv problem or what.
(DJANGO)jimmy@lilly ~/mysite $ pip install MySQL-python
Downloading/unpacking MySQL-python
Downloading MySQL-python-1.2.4.zip (113kB): 113kB downloaded
Running setup.py egg_info for package MySQL-python
Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz Extracting in /tmp/tmpLPLYIS
Now working in /tmp/tmpLPLYIS/distribute-0.6.28
Building a Distribute egg in /home/jimmy/.virtualenvs/DJANGO/build/MySQL-python
/home/jimmy/.virtualenvs/DJANGO/build/MySQL-python/distribute-0.6.28-py2.7.egg
sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/home/jimmy/.virtualenvs/DJANGO/build/MySQL-python/setup.py", line 18, 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 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
Complete output from command python setup.py egg_info:
Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gzExtracting in /tmp/tmpLPLYIS
Now working in /tmp/tmpLPLYIS/distribute-0.6.28
Building a Distribute egg in /home/jimmy/.virtualenvs/DJANGO/build/MySQL-python
/home/jimmy/.virtualenvs/DJANGO/build/MySQL-python/distribute-0.6.28-py2.7.egg
sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/home/jimmy/.virtualenvs/DJANGO/build/MySQL-python/setup.py", line 18, 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 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/jimmy/.virtualenvs/DJANGO/build/MySQL-python
Storing complete log in /home/jimmy/.pip/pip.log