---
title: 安装依赖时提示未安装或找不到Python.h-Atlas Community
description: 安装依赖时提示“fatal error：Python.h：No such file or directory”或者“Could not find <Python.h>”等信息。
keywords: Python.h;安装依赖
url: https://www.hiascend.com/document/caselibrary/detail/topic_0000001382290905
section: (其他)
---

# 安装依赖时提示未安装或找不到Python.h-Atlas Community

URL: https://www.hiascend.com/document/caselibrary/detail/topic_0000001382290905
描述: 安装依赖时提示“fatal error：Python.h：No such file or directory”或者“Could not find <Python.h>”等信息。
关键词: Python.h;安装依赖

昇腾文档 [了解详情](https://www.hiascend.com/document)

故障案例 [了解详情](https://www.hiascend.com/document/caselibrary)

安装依赖时提示未安装或找不到Python.h

安装依赖时提示未安装或找不到Python.h

2023/06/06

2.2k

No rating yet

Rate This Document

问题信息

| 问题来源 | 产品大类 | 产品子类 | 关键字 |
| --- | --- | --- | ---|
| 官方 | 安装部署 | MindStudio | Python.h、安装依赖 |

#### 问题现象描述

安装依赖时提示“fatal error：Python.h：No such file or directory”或者“Could not find &lt;Python.h&gt;”等信息。

图1提示信息1（示例）

图2提示信息2（示例）

#### 原因分析

环境缺少Python3的开发包。

#### 解决措施

根据实际使用的系统，执行以下命令安装依赖：

- apt-get install python3-dev
- yum install python3-devel
- dnf install python3-devel

本页内容

- 问题信息
- 问题现象描述
- 原因分析
- 解决措施
