pip install mysql-python fails with EnvironmentError: mysql_config not found

This is the error I get (mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install mysql-python Downloading/unpacking mysql-python Downloading MySQL-python-1.2.3.tar.gz (70Kb): 70Kb downloaded Running setup.py egg_info for package mysql-python 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 … Read more

Installing specific package version with pip

I am trying to install version 1.2.2 of MySQL_python, using a fresh virtualenv created with the –no-site-packages option. The current version shown in PyPi is 1.2.3. Is there a way to install the older version? I have tried: pip install MySQL_python==1.2.2 However, when installed, it still shows MySQL_python-1.2.3-py2.6.egg-info in the site packages. Is this a … Read more