問題及解決辦法:
1.easy_install MySQLdb提示error: Could not find suitable distribution for Requirement.parse('mysql-connector-python').原因是MySQLdb在pipit上面叫MySQL-python
解決辦法:使用easy_install MySQL-python可以找到了.
2.easy_install MySQL-python提示EnvironmentError: mysql_config not found
這個問題是因?yàn)檎也坏?code>mysql_config的原因?qū)е碌?,不知道安裝時候用mysql_config做了什么,解決辦法有2個,網(wǎng)上都是說改site.cfg里面的mysql_config路徑,但我使用easy_install沒辦法改
解決辦法:在PATH里增加/usr/local/mysql/bin解決.