Created
August 5, 2013 07:33
-
-
Save swpu-lee/6154080 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
系统环境:centos_6.4_x64 | |
我的项目中还用到了virtualenv,碰到问题的朋友可以尝试以下方案: | |
1、让系统找到自定义安装的mysql目录下的lib | |
echo "/usr/local/mysql/lib/" > /etc/ld.so.conf.d/mysql.conf | |
2、把mysql_config 软链接到/usr/local/bin/下 | |
ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config | |
3、用pip装,我这里使用到了virtualenv创建的虚拟环境env。建议安装1.2.3,目前(2013年8月5日)1.2.4好像有问题 | |
env/bin/pip install mysql-python==1.2.3 | |
done | |
## Thank DaoDao(http://www.foolpig.com) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment