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

# Python Virtual Environment (VENV)

## Virtual Environment

to install python libraries (packages) without collision with Kali linux system packages

{% embed url="<https://labex.io/tutorials/python-how-to-activate-and-deactivate-a-python-virtual-environment-397940>" %}

### Install

```
apt install python3
apt install python3-pip
apt install python3-venv
```

### Activate

Activate python virtual environment from your current working directory (where your tool or github project is cloned.

```
python3 -m venv myenv
source myenv/bin/activate
```
