> For the complete documentation index, see [llms.txt](https://jen-hsuan-hsieh.gitbook.io/python/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jen-hsuan-hsieh.gitbook.io/python/chapter-2courses/21python-for-data-science-and-machine-learning-bootcamp/2111virtual-environment.md).

# 2.1.1.Virtual Environment

## 虛擬環境

* 為了可以使用不同的版本的套件

## 操作指令

* 1.先確認conda已經是最新版本

```
conda update conda
```

* 2.開一個新的Python虛擬環境

```
conda create --name fluppy numpy
```

* 3.執行虛擬環境

```
source activate fluppy
```

* 4.執行虛擬環境

```
source deactivate fluppy
```

* 5.指定Python版本

```
conda create --name fluppy python=3
```
