Python.h: No such file or directory #include <Python.h> ^~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1 code example
Example 1: python.h missing
# `Python.h` is provided by the "python-dev" or "python3-dev" packages on debian/Ubuntu.
# On some sytems it will be "python-devel", "python2-devel" and/or "python3-devel"
sudo apt-get install python-dev python3-dev
Example 2: fatal error: Python.h: No such file or directory 45 | #include | ^~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1
sudo yum install python-devel
sudo yum install libevent-devel
sudo easy_install gevent