3

I am trying to install mysqlclient, but I get this error message:

_mysql.c:40:20: fatal error: Python.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Could anyone help me to resolve this?

Vladyslav
  • 2,018
  • 4
  • 18
  • 44

1 Answers1

3

You need to install the python development package (which contains the C headers files) for your OS (on debian-based distros it's named 'pythonX.X-dev' where 'X.X' is python version).

bruno desthuilliers
  • 75,974
  • 6
  • 88
  • 118