Working with mysql

HI, I am trying to work with mysql in python package
How can I install ```
libmysqlclient-dev

Also, running pip install python-dotenv mysqlclient returns my_config not found. How can I go about these?
1 Like

I want to know the answer too.

I guess the problem is that mysqlclient cannot be installed because you need to install the C binary using the package manager of the linux.

As a workaround, you can use “pymysql” library instead, but it is a bit slower.

Another package that works as well is mysql-connector-python. I’ll ping the team about mysqlclient though and will update here if there is a path forward. Thanks!

1 Like

I am facing the same issue. I have imported my django project from Github. When I tried to pip install all the requirements in requirements.txt.

mysqlclient havent been installed throwing error

ERROR: Could not find a version that satisfies the requirement mysqlclient

It tried installing different versions of mysqlclient.

Could you please help me find a workaround. I am new to Django . A detailed explanation would help.

Hi @DheerajSatyavar , welcome to the forums!
I think Django’s db is sql already, so no need to import anything?

No I am using third party mysql server. So I need mysqlclient to connect to it