---
title: 编译SU2 7.0.4 时报错
description: "编译SU2时报错，报错信息为“configure: error: cannot find python-config for /usr/bin/python.”。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0099.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0099.html
indexId: 0eab70f5819fa30e317e7eb6c2e16088b466d62748d2dfedad53dcfbdee0d02974
---
# 编译SU2 7.0.4 时报错

#### 问题现象描述

编译SU2时报错，报错信息为“configure: error: cannot find python-config for /usr/bin/python.”。


#### 关键过程、根本原因分析

缺乏依赖python-devel。


#### 结论、解决方案及效果

在编译安装(https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengsu2_02_0011.html)之前，执行以下命令安装依赖。

yum install python-devel -y
