I am attempting to install mysqlclient via:
$ pip install mysqlclient
I receive the following error:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-_kwgf7vk/mysqlclient/
Python version: 3.6.6
OS: Ubuntu 18.04.1 LTS
Virtualenv: I receive the same error both inside and outside of my virtual environment
How can I successfully install mysql?
I saw a similar post somewhere else. The solution was:
sudo apt-get install python3.6-dev libmysqlclient-dev
activate the virtual environment and execute command
pip install mysqlclient
I don't know if it's gonna help but i hope it will.
As the official PyPi documentation suggests you need to have the following dependent libraries preinstalled
sudo apt-get install python-dev default-libmysqlclient-dev python3-dev
after that you could do a pip install mysqlclient
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With