close

[Solved] pip install mysqlclient error

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error pip install mysqlclient error in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How pip install mysqlclient error Error Occurs?

Today I get the following error pip install mysqlclient error in python.

How To Solve pip install mysqlclient error Error ?

  1. How To Solve pip install mysqlclient error Error ?

    To Solve pip install mysqlclient error Error You may need to install the Python 3 and MySQL development headers and libraries like so: 

  2. pip install mysqlclient error

    To Solve pip install mysqlclient error Error You may need to install the Python 3 and MySQL development headers and libraries like so: 

Solution 1

First install python 3.6.5, then run

pip install mysqlclient==1.3.12

Solution 2

You may need to install the Python 3 and MySQL development headers and libraries like so: For UBUNTU or Debian

sudo apt-get install python3-dev default-libmysqlclient-dev build-essential

Red Hat / CentOS

sudo yum install python3-devel mysql-devel

Then try

pip install mysqlclient

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read