mysql_config not found

在python中安装MySQL_python。不想通过下载源码编译,而是想用

easy_install MySQL_python

来安装。结果一直报错:

网上很多资料说要通过修改site.cfg来指定mysql_config的位置。我想只是因为我的macos里的mysql没有安装到系统默认位置导致的。考虑到系统会到/usr/bin找mysql,那自然也会去这里找mysql_config。于是安装语句变成了:

easy_install MySQL-python --with-mysql_config=/usr/local/mysql-5.6.20-osx10.8-x86_64/bin/mysql_config

就通过了。

时间: 2024-10-23 02:01:39

mysql_config not found的相关文章

centos7 安装mysql--python模块出现EnvironmentError: mysql_config not found和error: command 'gcc' failed with exit status 1

要想使python可以操作mysql 就需要MySQL-python驱动,它是python 操作mysql必不可少的模块. 下载地址:https://pypi.python.org/pypi/MySQL-python/ 下载MySQL-python-1.2.5.zip 文件之后直接解压.进入MySQL-python-1.2.5目录: python setup.py install 报错: [[email protected] MySQL-python-1.2.4]# python setup.p

[已解决]EnvironmentError: mysql_config not found

$ pip install MySQL-python==1.2.5 报错: EnvironmentError: mysql_config not found 原因是缺少包 libmysqlclient-dev $ sudo apt-get install libmysqlclient-dev

python3   安装mysql-client 报错 mysql_config not found (py3 centos7)

centos7 pip3安装mysql-client时报错 "mysql_config not found " 459  yum -y install libmysqlclient-dev 460  yum -y install libmysqlclient-devel 464  yum -y install libmysqlclient-devel 473  yum -y install mysql-python 474  yum install python-devel 475  

MySQL缺失mysql_config文件

打算爬虫,安装mysqldb 结果使用pip安装出错 在centos-6.4上pip install mysql-python,报错如下[[email protected] mysql-python]$ pip install mysql-python Downloading/unpacking mysql-python Running setup.py egg_info for package mysql-python sh: /usr/bin/mysql_config: No such fi

mysql_config not found的问题的解决方案

解决方案如下: 将mysql_confi从你的安装目录创建软链接到/usr/local/bin目录下,这样就可以在任意目录下访问了(也可以放到/usr/bin) ln -sf /home/Clark/source/mysql-5.6.15/bin/mysql_config /usr/local/bin/mysql_config ok

python 安装MySQLdb mysql_config not fount原因

在安装MySQLdb模块的时候,无论是pip还是apt-get都出现如下的错误. [email protected]:~# cd MySQL-python-1.2.3 [email protected]:~/MySQL-python-1.2.3# python setup.py install  sh: mysql_config: not found Traceback (most recent call last):   File "setup.py", line 15, in &l

<checking for mysql_config not found>

php 5.3.29编译安装排错: ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/bin/mysql_config --with-pdo-mysql=/usr/loca/mysql --with-gd --with-png-dir=/usr/local/libpng --with-jpeg

ubuntu安装mysql-python出错,EnvironmentError: mysql_config not found

安装mysql-python包出错 Downloading MySQL-python-1.2.5.zip (108kB) 100% |████████████████████████████████| 112kB 155kB/s Complete output from command python setup.py egg_info: sh: 1: mysql_config: not found Traceback (most recent call last): File "<stri

解决问题 mysql_config not found

转自:https://segmentfault.com/a/1190000000442705 找不到mysql_config一般是由于通过lnmp.org或者其他方式安装mysql以后mysql_config是在/usr/local/mysql/bin/里面,这里面的文件不是在任意位置都可以访问的 解决方法: 执行 ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config 将mysql_config链接到/usr/lo