---
title: 鲲鹏环境麒麟系统下创建Python2环境
description: 因为软件安装需求，需要安装Python2环境。
url: "https://www.hikunpeng.com/document/detail/zh/kunpengfaq/productfaq/osfaq/os_faq_0016.html"
---

# 鲲鹏环境麒麟系统下创建Python2环境

因为软件安装需求，需要安装Python2环境。

1. 创建一个名为py27的新环境，并指定运行环境为python2.7。

```
conda create -n py27 python2.7
```


2. 激活创建的py27环境。

```
conda activate py27
```


3. 查看Python版本。

```
python --version
```


4. 若需要退出py27环境，请执行以下命令。

```
conda deactivate
```
