File"/home/MySQL-python-1.2.3/setup_posix.py", line24, in mysql_config raise EnvironmentError("%s not found"% (mysql_config.path,)) EnvironmentError: mysql_confignotfound 思路 # 搜索错误是需要依赖mysql-devel包,但我使用用rpm安装
测试mysql_config是否可以在终端中直接调用: 在终端中直接输入mysql_config,然后按回车键。如果系统显示了mysql_config的帮助信息或版本信息,则说明它现在可以正常调用。 按照以上步骤操作后,你应该能够解决EnvironmentError: mysql_config not found的问题。如果问题仍然存在,请检查是否有其他依赖问题或配置错误。
pip install MySQL-python 报错提示: mariadb EnvironmentError: mysql_config not found 安装mysql-devel: yum -y install mysql-devel 执行pip install MySQL-python,又出现报错: error: command 'gcc' failed with exit status 1 这是由于没有正确安装Python开发环境导致。 Centos/Fedora下 yum install python-dev...
1. 首先安装mysql sudo apt-get install mysql-server 2. 安装mysql-python 下载MySQL-python-1.2.3.tar.gz(见附件),解压到指定目录。 到解压后的MySQL-python-1.2.3目录下编译配置MySQL-python: python setup.py build 此时系统报错:EnvironmentError: mysql_config not found 很明显没有mysql_config这个文件 执...
到解压后的MySQL-python-1.2.3目录下编译配置MySQL-python: 1 python setup.py build 此时系统报错:EnvironmentError: mysql_config not found 执行 1 find/ -name mysql_config ,没有任何数据,表明系统中没有mysql_config这个文件 原来使用apt-get安装的MySQL是没有mysql_config这个文件的 ...
Mac OS X - EnvironmentError: mysql_config not found 1. 问题解决: 1、先确保安装过python 2、确保安装过mysql 3、执行命令: export PATH=$PATH:/usr/local/mysql/bin 1. 4、再尝试安装 pip install MySQL-Python 1. 参考: 1.Mac OS X - EnvironmentError: mysql_config not found...
首先安装mysqlsudo apt-get install mysql-server 2. 安装mysql-python下载MySQL-python-1.2.3.tar.gz(见附件),解压到指定目录。到解压后的MySQL-python-1.2.3目录下编译配置 python mysql_config Mac OS: EnvironmentError: mysql_config not found 问题报错Mac OS X - EnvironmentError: mysql_config not found...
API Explorer SDK中心 软件开发生产线 AI开发生产线 数据治理生产线 数字内容生产线 开发者Programs Huawe...
报错提示如下: Runningsetup.pyegg_infoforpackagemysql-python sh:mysql_config:commandnotfound Traceback(mostrecentcalllast): File"<string>",lin 报错提示如下: Runningsetup.pyegg_infoforpackagemysql-python sh:mysql_config:commandnotfound Traceback(mostrecentcalllast): ...
原因是没有安装:libmysqlclient-dev 找到mysql_config文件的路径 mysql_config的位置为:/usr/bin/mysql_config 在mysql-python源码包下找到:setup_posix.py 文件,然后找到文件中的 mysql_config.path