cffi.verificationerror: compileerror: command 'x86_64-linux-gnu-gcc' failed with exit status 1 code example

Example 1: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

$ sudo apt-get install libxml2-dev libxslt1-dev

Example 2: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

sudo apt-get install libpq-dev libxml2-dev libxslt1-dev python-dev

Example 3: 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 4: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

sudo apt-get install python-dev
sudo apt-get install libxml2-dev libxslt1-dev