‘ error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1 ‘

python3

sudo apt-get install python3 python-dev python3-dev \
     build-essential libssl-dev libffi-dev \
     libxml2-dev libxslt1-dev zlib1g-dev \
     python-pip

python2

sudo apt-get install python-dev  \
     build-essential libssl-dev libffi-dev \
     libxml2-dev libxslt1-dev zlib1g-dev \
     python-pip

참고

‘ error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1 ‘