解决python 缺少 'python.
最近用pip安装工具包老是出现错误
错误如下:
In file included from greenlet.c:5:0:
greenlet.h:8:20: 致命错误: Python.h:没有那个文件或目录
编译中断。
error: Setup script exited with error: command 'gcc' failed with exit status 1
解决方法是安装python-dev,这是Python的头文件和静态库包:
ubuntu 下安装
sudo apt-get install python-dev
Centos 下安装
yum install python-devel
相关文章