本来很简单的东西,因为安装了Mysql5.7执行以下几步1.wget 2.cd mysql-python-1.2.3 3.yum -y install Python-devel mysql-devel 4.mkdir -p /usr/
本来很简单的东西,因为安装了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
--结束END--
本文标题: pip install MySQL-py
本文链接: https://lsjlt.com/news/183960.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0