Pipenv install mysql client

Whenever i go to run this command : pipenv install mysqlclient, i get this error message

[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: metadata generation failed

However, when i use pipenv graph to check for dependencies i dont have any.
Moreover, I have successfully downloaded mysql but for some reason, i cannot install mysql client.
Any help on this matter will be appreciated.
Thank you

Try clearing the cache in the lock file with below command. Does it work now?

$ pipenv lock --pre --clear

dint work for me. @majdk were you able to resolve?
I am stuck with the same.

just found the solution:

please refer:

I did whatever is suggested in the post above and it worked for me. Below is what I did:

mysql_config --cflags
mysql_config --libs
-L/usr/local/mysql/lib -lmysqlclient -lssl -lcrypto -lresolv

export MYSQLCLIENT_LDFLAGS=‘-L/usr/local/mysql/lib -lmysqlclient -lssl -lcrypto -lresolv’
export MYSQLCLIENT_CFLAGS=‘-I/usr/local/mysql/include’