Linux下安装mysql-python组件
来源:互联网 发布:双11淘宝红包 编辑:程序博客网 时间:2024/05/22 09:01
- 下载mysql-python
官网地址 - 解压
- 安装前的准备工作
a、修改setup_posix.py中mysql_config.path为你mysql安装目录的mysql_config路径
[root@localhost blog]# whereis mysql_configmysql_config: /usr/bin/mysql_config /usr/share/man/man1/mysql_config.1.gz
修改mysql_config.path为你mysql安装目录的mysql_config路径如下:
mysql_config.path ="/usr/bin/mysql_config"
b、修改site.cfgmysql_config = /usr/bin/mysql_configc、执行命令:
export LD_LIBRARY_PATH=/usr/lib/mysqlln -s /usr/lib/libmysqlclient.so /usr/lib/libmysqlclient.so.16ldconfig
4.build和install
python setup.py build
如果出现
则CenOS和redhat可配置yum源安装python-dev
[root@localhost MySQL-python-1.2.2]# yum install python-devel.x86_64Loaded plugins: fastestmirror, refresh-packagekit, securitySetting up Install ProcessLoading mirror speeds from cached hostfileResolving Dependencies--> Running transaction check
ubuntu可以采用
sudo apt-get install python-dev
然后重复上述步骤
最后
setup.cfg setup.py [root@localhost MySQL-python-1.2.2]# python setup.py installrunning installrunning bdist_eggrunning egg_infowriting MySQL_python.egg-info/PKG-INFO
5、测试安装是否成功
0 0
- Linux下安装mysql-python组件
- linux下安装mysql-python
- linux下MySQL-Python安装
- linux 下 mysql-python 安装
- Linux下安装mysql-python
- ubuntu及Center OS下的python mysql组件安装。
- linux 下安装 pip,linux下安装Mysql-Python
- Linux环境下MySQL-python安装过程
- Linux环境下MySQL-python安装过程
- Linux环境下MySQL-python安装过程
- Linux环境下MySQL-python安装过程
- linux下安装mysql-python笔记
- Linux下MySQL-python的安装
- Linux环境下MySQL-python安装过程
- linux下安装python、scrapy、redis、mysql
- linux下python安装Mysql扩展
- linux下安装python mysql驱动
- linux下python安装Mysql扩展
- 经典问题-摇双色模拟(次数自定义)(Dice Rolling)
- C++ 几个不常用的关键字
- Hibernate工作原理
- CodeForces - 557A Ilya and Diplomas
- Zabbix 3.0 安装
- Linux下安装mysql-python组件
- Java中判断字符串是否是有效数字的几种方法
- php处理时间过长时返回空数据
- 阿里面经之解答 by cmershen(5)——内存泄露,java.util.concurrent包
- centos 下nginx 单ip多站点多域名配置 二级域名
- Android Studio 开发工具一些入门的小设置
- Progress水平进度条的自定义样式
- angularJs搭建多页面应用-angularJs路由。
- hibernate的速度问题--hibernate.jdbc.fetch_size和 hibernate.jdbc.batch_size