1.更新系统
出现
sudo apt-get update
2.更新软件
sudo apt-get dist-upgrade
出现
错误:
error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
解决办法:
sudo apt-get install python-dev
2.出现以下错误:
解决办法:
需要安装libffi-dev包,如果是ubuntu或者debian的话,运行:
sudo apt-get install libffi-dev