您的位置:首页 > 编程语言 > Python开发

pip install MySQL-python

2016-10-26 11:49 148 查看
本来很简单的东西,因为安装了mysql5.7
执行以下几步
1.wget
2.cd MySQL-python-1.2.3
3.yum -y install  python-devel  mysql-devel
4.mkdir -p /usr/local/mysql/lib && ln -s /opt/mysql/lib /usr/local/mysql/lib/mysql
5.Edit the setup_posix.py and change the following
mysql_config.path = "mysql_config"
to
mysql_config.path = "/usr/local/mysql/bin/mysql_config"
6. sudo python setup.py build && sudo python setup.py install
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  MySQL python