include "Python.h" ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 code example
Example 1: python error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
sudo apt-get install gcc python3.x-dev # choose correct python version
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