mysqlclient installation error

85 views
Skip to first unread message

Raja Sekar Sampath

unread,
Jun 11, 2019, 2:07:59 PM6/11/19
to Django users
Hi Guys,

While installing mysqlclient using pip, getting this error

VS C++ Build tool was installed in system and updated the setup tools, still getting this issue..
Any solution for this ?

My Environment :

OS : Windows 10
Python : 3.7
Django : 2.2
DB : MariaDB 10.2

Annotation 2019-06-11 192709.png

Desh Deepak

unread,
Jun 11, 2019, 3:32:23 PM6/11/19
to django...@googlegroups.com
Hi, 
MySQL client is not available for Django 2.2 and newer version.
You can uninstall 2.2 and download older Django version 2.0 for the database connection.


Thanks 
Desh Deepak

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/19576386-dd91-4e29-9fce-762a60461368%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raja Sekar Sampath

unread,
Jun 11, 2019, 3:41:46 PM6/11/19
to Django users
Hi Deepak,

Thanks for reply.,

Is there any alternative for that ?

I didn't want to downgrade the django 


On Tuesday, 11 June 2019 21:02:23 UTC+5:30, Desh Deepak wrote:
Hi, 
MySQL client is not available for Django 2.2 and newer version.
You can uninstall 2.2 and download older Django version 2.0 for the database connection.


Thanks 
Desh Deepak

On Tue, 11 Jun 2019, 19:37 Raja Sekar Sampath, <apkr...@gmail.com> wrote:
Hi Guys,

While installing mysqlclient using pip, getting this error

VS C++ Build tool was installed in system and updated the setup tools, still getting this issue..
Any solution for this ?

My Environment :

OS : Windows 10
Python : 3.7
Django : 2.2
DB : MariaDB 10.2

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.

James Farris

unread,
Jun 11, 2019, 3:55:29 PM6/11/19
to Django users
I have Django 2.2.x running with mysqlclient successfully

mysql-connector-python==8.0.15
mysqlclient==1.3.13

Emmanuel Simeon

unread,
Jun 11, 2019, 4:07:08 PM6/11/19
to django...@googlegroups.com
Had same issue setting up my current Project,

But my workaround after so much effort was this:

1. Install Visual Build Tools

2. Install the Required  MySQL C++ Connector (Better still download MySQL Setup with Workbench and install not Xampp or Wamp)

3. Uninstall Python and use the Web Installer to Install Python 3 again,

Those are essentially the steps i took to get my working.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.


--

|Simeon Emmanuel |

|Google Student Alumni, Sub Saharan Africa | 

|Federal University of Technology, Minna.|

|Cyber Security Science Department|

|Emmas...@gmail.com |

|+234 (0) 8058220157|

Karan Mittal

unread,
Jun 11, 2019, 4:07:46 PM6/11/19
to django...@googlegroups.com
the method of James works perfectly. I have been using the same with my Django project.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Tarandeep Singh

unread,
Jun 11, 2019, 10:02:15 PM6/11/19
to django...@googlegroups.com
How u have done it

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Raja Sekar Sampath

unread,
Jun 12, 2019, 5:18:38 AM6/12/19
to django...@googlegroups.com
Hi James Farris,

I have no luck...

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.


--
"Making a million friends is not a miracle, the miracle is to make a friend who will stand by you when a million are against you. "

--------------------------------------------------------------------------------

Have a Smileness Day
With A Smile
Rs.

Annotation 2019-06-12 104603.png

Raja Sekar Sampath

unread,
Jun 12, 2019, 5:22:13 AM6/12/19
to django...@googlegroups.com
Hi Emmanuel Simeon,

It would be great if you share the download link to Visual Build Tools and MySQL C++ Connector



For more options, visit https://groups.google.com/d/optout.


--

Emmanuel Simeon

unread,
Jun 12, 2019, 9:22:35 AM6/12/19
to Django users

 Links to resources I used to help me get MySQL working on Django

Visual Studio Build Tools Installer  - Link

MySQL DB and Connectors Web Installer  - Link
(I downloaded the complete package and installed everything including all the connectors)

And lastly which was like the trick that worked for me:
I uninstalled Python and used the python web installer to get the latest version of python.

PS: Something to be considered what's your system architecture if 32bit(x86) / 64bit(x64)

Choose the software build for your system architecture to be installed.

For instance:

I installed 64bit Python 3.7
same with my MySQL, I installed 64bit 
Because there are dependencies those software look for in certain places.

I truly hope this works for You,

Also when installing mysqlclient I didn't specify a version, I just did "pip install mysqlclient"

Reply all
Reply to author
Forward
0 new messages