Tag Archives: pydev

Mac下安装MySQLdb

本来以为使用easy_install安装MySQLdb很简单,结果还是费了一点劲才安装好。 问题及解决办法: easy_install MySQLdb提示 Couldn’t find index page for ‘MySQLdb’ (maybe misspelled?) No local packages or download links found for MySQLdb error: Could not find suitable distribution for Requirement.parse(‘MySQLdb’) 原来MySQLdb在pypi上面叫MySQL-python 解决办法:使用easy_install MySQL-python可以找到了,第2个问题也就出现了 easy_install MySQL-python提示 EnvironmentError: mysql_config not found 这个问题是因为找不到mysql_config的原因导致的,不知道安装时候用mysql_config做了什么,解决办法有2个,网上都是说改site.cfg里面的mysql_config路径,但我使用easy_install没办法改 解决办法:在PATH里增加/usr/local/mysql/bin解决 … Continue reading

Posted in Python | Tagged , , | 2 Comments