Error installing mysqlclient in WSL2, Ubuntu 20.04.

76 views
Skip to first unread message

Muhammed Lawal

unread,
Mar 26, 2023, 1:42:58 PM3/26/23
to django...@googlegroups.com
Hello everyone.
I'm trying to setup MySQL server for my django project but I couldn't get past installing mysqlclient. I've tried using pip3 and pipenv to install it but I'm getting errors and also, I've tried all possible solutions I could find online. Installed all the build dependencies yet still the same.
Please help me out of this. 
Screenshot 2023-03-26 151458.png
Screenshot 2023-03-26 151321.png
Screenshot 2023-03-26 151435.png

Hernan Gustavo

unread,
Mar 27, 2023, 5:17:28 PM3/27/23
to django...@googlegroups.com
This is a problem with the legacy install. Try to install it with the command pip install mysqlclient --use-pep517

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOzVPC9xMooBEUqJmdXFzN3Mvd8hbmPcjxpTt9ZR8%3D%3DHr_qmXg%40mail.gmail.com.

Anh Nguyen

unread,
Mar 29, 2023, 3:21:46 AM3/29/23
to django...@googlegroups.com

I highly recommend use docker for it
Reply all
Reply to author
Forward
0 new messages