2013年10月7日

EnvironmentError: mysql_config not found on Mac

pip install MySQL-python Got this error EnvironmentError: mysql_config not found Complete output from command python setup.py egg_info: sh: mysql_config: command not found The configuration in venv/build/MySQL-python/site.cfg points to a wrong executable of mysql_config.
The way to solve it
1. Change the site.cfg
2. Add /usr/local/mysql/bin to PATH
3. ln
sudo ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config If it's on Ubuntu
sudo apt-get install libmysqlclient-dev


沒有留言:

張貼留言