EnvironmentError: mysql_config not found
Then I have tried to install the mysql client and try to install mysql-python again, the result is same.
After searching a lot, I have found a solution. Then I have followed the following steps:
in terminal:
sudo apt-get install libmysqlclient15-dev
sudo easy_install MySQL_python-1.2.3c1-py2.5-linux-i686.egg
And its works for me!!!!
Thanks
Sakib
Hey I got it resolved via using Synaptics Package Manager. Installed python-mysqldb package and it worked like magic.
ReplyDeletegot following error:
ReplyDeleteReading http://pypi.python.org/simple/MySQL_python-1.2.3c1-py2.5-linux-i386.egg/
Reading http://pypi.python.org/simple/MySQL-python-1.2.3c1-py2.5-linux-i386.egg/
Couldn't find index page for 'MySQL_python-1.2.3c1-py2.5-linux-i386.egg' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for MySQL-python-1.2.3c1-py2.5-linux-i386.egg
error: Could not find suitable distribution for Requirement.parse('MySQL-python-1.2.3c1-py2.5-linux-i386.egg')
i tried both with i686 and i386.
worked for me. Used pip to install mysql-python
ReplyDeleteThank you!!! It works now :D
ReplyDelete