I am trying to install mysqlclient for python in my virtualenv. It fails with the following:
#include "Python.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
After some research, i found out that i require python-dev installation. I have it installed in my main directories (i.e /usr/bin ... ) but its not installed virtualenv but each time i type:
sudo apt-get install python-dev
I get the following response:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 453 not upgraded.
Showing its availability, outside the virtualenv mysqlclient installs properly. The issue is how to rectify python-dev installation into the virtualenv
*.hheader.python3-dev.apt-get install python3-devadd header files to the virtual environment? I am facing a similar issue where I requirepython3-devfor a virtual environment. Please let me know if you were able to solve this and how. Thanks.