Virtual environment (Python)

If you want to install project dependencies without cluttering the system, then you should use a virtual environment.


0. Install py

$ brew install python@3.13

1. Create venv

$ python3.13 -m venv ~/venv_3_13

2. Join venv

Linux

$ source ~/venv_3_13/bin/activate

Windows

$ .\venv_3_13\Scripts\activate

3. Leave venv

$ deactivate

4. Remove venv

$ rm -r ~/venv_3_13