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

#### 操作步骤

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

```
cd
/path/to/paddle
```


3. 解压安装包。

```
tar xvf v2.3.1.tar.gz
cd Paddle-2.3.1
```


4. 修改相关配置文件。

```
sed -i "136c\    -Wno-error" cmake/flags.cmake
sed -i "219c\        -Wno-error" cmake/flags.cmake
```


5. 编译。

```
mkdir build
cd build
cmake .. -DWITH_GPU=OFF -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DPY_VERSION=3 -DWITH_MKL=OFF -DWITH_AVX=OFF -DON_INFER=ON -DWITH_ARM=ON
ulimit -n 4096
git config --global http.postBuffer 524288000
make TARGET=ARMV8 -j$(nproc)
```


  注意：此make步骤中是需要git clone相关依赖并自动安装，需要保证机器能够访问网络，该步骤需要花费较多时间

  编译完成后会在当前目录下的python/dist生成一个whl，结果回显。

6. 安装。

```
cd python/dist
pip3 install -U *.whl
```
