> For the complete documentation index, see [llms.txt](https://yo-sarawut.gitbook.io/snippet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yo-sarawut.gitbook.io/snippet/python/virtual-environment.md).

# Virtual environment

### Create virtual environment

```bash
$ python --version
# Python 3.8.5

$ python -m venv myenv
. myenv/bin/activate
```

### Activate virtual environment

```bash
python -m venv myenv
```

**หรือ**

```bash
$ . myenv/bin/activate
```
