---
title: 安装基础依赖环境
description: "本章节使用Yum源方式安装GCC/G++、Python等编译ONNX Runtime所依赖的基础软件。"
url: https://www.hikunpeng.com/document/detail/zh/SRA/ecosystemEnable/ONNXRuntime/kunpengonnxruntime_02_0007.html
sourcePath: /source/zh/SRA/ecosystemEnable/ONNXRuntime/kunpengonnxruntime_02_0007.html
indexId: 12d5cac677d340530a81c6ba0365c7fb483128b012d69680a084a494c00305f774
---
# 安装基础依赖环境

本章节使用Yum源方式安装GCC/G++、Python等编译ONNX Runtime所依赖的基础软件。

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令安装基础软件。
  1 yum install gcc g++ git python openssl-devel

3. 安装验证。
  以GCC为例，G++、Git、Python、openssl-devel类似。 1 gcc --version

  回显信息如以下内容，且版本符合环境要求，则安装成功。

```
gcc (GCC) 10.3.1
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```
