Search code examples
pythonmysqlcygwinmysql-python

MySQL-python - mysql_config not found


I am trying to install MySQLDB/MySQL-python on Cygwin with a Windows MySQL server. While installing it errs out with the error below.

Is there a way to work around the below 2 issues. I dont want to install MySQLDB on cygwin. I only want the connector to use in the code.

$ pip install MySQL-python
Downloading/unpacking MySQL-python
EnvironmentError: mysql_config not found

pip install MySQLdb
Downloading/unpacking MySQLdb
Could not find any downloads that satisfy the requirement MySQLdb

Thanks for the help.


Solution

  • I got it fixed after installing "libmysqlclient-devel"

    apt-cyg install libmysqlclient-devel
    

    Still MySQLdb does not work with sock file error. Opened another thread for that problem