error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1 只需安装python-dev,它是Python的头文件和静态库包: sudo apt-get install python-dev