Mac 下安装 python 软件
1.安装 mysql-python
?? > easy_install MySQL-python
?? >?提示?EnvironmentError: mysql_config not found:
?? ? ?解决办法:在PATH里增加/usr/local/mysql/bin解决
?? > 提示 Library?not?loaded:?libmysqlclient.18.dylib??? ? ?
????? 解决办法:使用export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/
2. 安装lxml
?? > sudo env ARCHFLAGS="-arch x86_64" easy_install lxml (64位)