问题:Python.h:没有那个文件或目录

来源:互联网 发布:万网域名证书生成 编辑:程序博客网 时间:2024/05/29 10:06

今天使用STS,在安装hassel时报错,


致命错误: Python.h:没有那个文件或目录
编译中断。

error: Setup script exited with error: command 'gcc' failed with exit status 1 

 

解决方法是安装python-dev,这是Python的头文件和静态库包:

sudo apt-get install python-dev


0 0
原创粉丝点击