在build Symphony 的CentOS image的时候,需要安装Murano-agent,
git clone 下来Murano-agent的包以后,先执行以下命令安装依赖
pip install -r requirement.txt这个时候出现了这个错误:
In file included from greenlet.c:5:0:
greenlet.h:8:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1`这是因为没有安装Python development 需要的headers导致的
可以做如下处理
yum install python-devel
yum install libevent-devel

本文详细介绍了在使用pip安装Murano-agent依赖时遇到的Python headers缺失导致的编译错误,并提供了通过yum安装python-devel和libevent-devel来解决此问题的方法。
1851

被折叠的 条评论
为什么被折叠?



