Pip Install MySQL-Python Fails with Environmenterror: MySQL_Config Not Found

pip install mysql-python fails with EnvironmentError: mysql_config not found

It seems mysql_config is missing on your system or the installer could not find it.
Be sure mysql_config is really installed.

For example on Debian/Ubuntu you must install the package:

sudo apt-get install libmysqlclient-dev

Maybe the mysql_config is not in your path, it will be the case when you compile by yourself
the mysql suite.

Update: For recent versions of debian/ubuntu (as of 2018) it is

sudo apt install default-libmysqlclient-dev

pip install MySQL-python==1.2.5 not working

You need to install dev libs for mysql client:

sudo apt-get install libmysqlclient-dev

Receive module not found error after i pip mysql.connector

In Spyder go to Tools > Preferences > Python interpreter, select Use the following Python interpreter: and choose the Python .exe from your other installation.

There is probably a similar setting in Pycharm’s preferences.

can't install mysql==0.0.2 in python==3.8.1 environment

You shouldn't install mysql at all.

This package is a ‘virtual package’, which requires MySQL-python (Python 2) or mysqlclient (Python 3) to install. In effect, this means ‘pip install mysql’ will actually install MySQL-python.
Instead of depending on this package, please depend on the relevant package directly.

In a Python 3 world, use either

  • pip install mysqlclient (for MySQLdb), or
  • pip install mysql-connector-python (for mysql.connector).

How to fix the error coming pip install MySQL-python

Here is the error, looks like you need to install MS visual C++ 14.0

error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools
for Visual Studio": https://visualstudio.microsoft.com/downloads/
---------------------------------------- ERROR: Command errored out with exit status 1



Related Topics



Leave a reply



Submit