pip install mysqlclient报错(OSError: mysql_config not found)

报错截图

一般情况是系统没有安装libmysqld-dev

执行 sudo apt install libmysqld-dev完成安装后再 pip install mysqlclient就可以了(系统环境Ubuntu18.04)

原文地址:https://www.cnblogs.com/IT-Crowd/p/11742384.html

时间: 2024-10-27 06:22:15

pip install mysqlclient报错(OSError: mysql_config not found)的相关文章

pip 安装mysqlclient报错OSError: mysql_config not found

执行 pip install mysqlclient 报错信息如下: [[email protected] bin]# pip install mysqlclient Collecting mysqlclient Using cached mysqlclient-1.3.12.tar.gz Complete output from command python setup.py egg_info: /bin/sh: mysql_config: command not found Tracebac

pip install mysqlclient 解决问题:OSError: mysql_config not found

通过pip install mysqlclient时报出了OSError: mysql_config not found错误,如图: 原因是linux需要mysql相关的一些依赖包 yum install mysql-devel gcc gcc-devel python-devel 原文地址:https://www.jianshu.com/p/5b6deb15bd21 我的环境是centos7.4 原文地址:https://www.cnblogs.com/ycg-blog/p/12149190.

mac安装sudo pip install MySQL-python报错EnvironmentError: mysql_config not found解决方法

PATH="/usr/local/mysql/bin:${PATH}" export PATH export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/ export VERSIONER_PYTHON_PREFER_64_BIT=no export VERSIONER_PYTHON_PREFER_32_BIT=yes 参考文档:http://www.cnblogs.com/ifantastic/archive/2013/04/13/3017677.h

python pip安装 mysqlclient 报错 raise EnvironmentError("%s not found" % (_mysql_config_path,)) OSError: mysql_config not found

raise EnvironmentError("%s not found" % (_mysql_config_path,)) OSError: mysql_config not found 解决办法 yum install mysql-devel python pip安装 mysqlclient 报错 raise EnvironmentError("%s not found" % (_mysql_config_path,)) OSError: mysql_confi

pip install flask-mongoengine报错

pip install flask-mongoengine报错 报错如下: Collecting pytz (from -r /srv/wms/engine/requirements.txt (line 5)) Downloading https://pypi.doubanio.com/packages/a3/7f/e7d1acbd433b929168a4fb4182a2ff3c33653717195a26c1de099ad1ef29/pytz-2017.3-py2.py3-none-any.w

Mac中 pip3 install mysqlclient 报错

主要错误提示如下: ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'clang' failed with exit status 1 ---------------------------------------- Failed building wheel for mysqlclient

pip install wechatpy报错

安装python 版WeChat sdk pip install wechatpy[cryptography] 报错 Found existing installation: six 1.4.1 DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that

docker中pip install/uninstall报错

docker中pip install or uninstall报错 事件起因 今天开发同学咨询了一个问题,他说在docker的一个运行容器中执行如下命令: cd /usr/lib/python2.7/site-packages/ 该目录下有两个目录,分别是:smart_open 和 samrt_open-1.5.5-py2.7.egg-info rm -rf samrt_open-1.5.5-py2.7.egg-info/ 这时出现报错,报错信息如下: rm: cannot remove 'sm

python安装matplotlib:python -m pip install matplotlib报错

matplotlib是python中强大的画图模块. 首先确保已经安装python,然后用pip来安装matplotlib模块. 进入到cmd窗口下,建议执行python -m pip install -U pip setuptools进行升级. 接着键入python -m pip install matplotlib进行自动的安装,系统会自动下载安装包. 安装完成后,可以用python -m pip list查看本机的安装的所有模块,确保matplotlib已经安装成功. 如果你能看的上面的m