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

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令创建并进入conda环境。

```
conda create -n kobas && conda activate kobas
```


3. 执行以下命令安装Python环境。

```
conda install -c bioconda -c conda-forge python=2.7.15
```


4. 执行以下命令安装依赖。

```
conda install -c conda-forge -c bioconda panda
s
/path
/to
/pip
install blast
```


  “/path/to/pip”表示conda环境下的“pip”目录，可用which pip查看具体路径。

```
conda install -c conda-forge -c bioconda r-base
/path/to
/pip install rpy2==2.8.5
/path/to
/pip install biopython==1.75 --trusted-host pypi.tuna.tsinghua.edu.cn -i
https://pypi.tuna.tsinghua.edu.cn/simple
conda install -c conda-forge -c bioconda bioconductor-qvalue
```


5. 执行以下命令安装KOBAS。

```
conda install --use-local kobas-3.0.3-py_2.tar.bz2
```
