centos 使用pip安装mysql-python
2015-10-28 11:37
691 查看
直接使用# pip install mysql-python 命令报 EnvironmentError: mysql_config not found 错误
安装mysql-phthon 需要用的mysql, mysql-devel, gcc libffi-devel python-devel openssl-devel
如果报:
_mysql.c:2666: error: ‘_mysql_ConnectionObject’ has no member named ‘open’ error: command 'gcc' failed with exit status 1
则检查或重新安装
$ yum install gcc libffi-devel python-devel openssl-devel
安装mysql-phthon 需要用的mysql, mysql-devel, gcc libffi-devel python-devel openssl-devel
如果报:
_mysql.c:2666: error: ‘_mysql_ConnectionObject’ has no member named ‘open’ error: command 'gcc' failed with exit status 1
则检查或重新安装
$ yum install gcc libffi-devel python-devel openssl-devel
相关文章推荐
- Linux下MySQL源码编译安装(eg:mysql-5.6.27.tar.gz )
- linux常用命令
- Linux套接字与虚拟文件系统(2):操作和销毁
- Linux 套接字与文件系统的关系--------套接字文件系统
- Linux下Hadoop2.6的安装
- linux 下安装 jdk7
- Linux进程调度原理
- Linux命令(6):常用文件重定向命令
- Linux解压缩zip,tar,tar.gz,tar.bz2
- Linux命令(5):tee命令
- linux下拷贝文件的时候出现权限不够,如何解决
- 救援linux
- Linux的特殊文件系统-----
- 安装完CentOS 7 后必做的七件事[转]
- 在Linux下使用GIMP打印一寸照
- linux的基础(转)
- Android ,在争议中逃离 Linux 内核的 GPL 约束
- Linux下Wireshark的网络抓包使用方法
- linux下批量修改文件名
- Linux文本命令集锦