---
title: 编译和安装
description: "1. 使用PuTTY工具，以root用户登录服务器。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengkeras_02_0008.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengkeras_02_0008.html
indexId: 3863bed297f2e8631e949715504121b34ae0264f1f0f5025eb61046429fa56a967
---
# 编译和安装

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令进入主程序安装目录。

```
cd
/path/to/keras
```


3. 执行以下命令安装Keras。

```
pip3 install keras==2.9.0 --trusted-host mirrors.tools.huawei.com -i http://mirrors.tools.huawei.com/pypi/simple
```


  回显显示信息如下图所示。
