python pip install venv code example
Example 1: how to use virtual environment python
python3 -m venv env
Example 2: how to use virtual environment python
python3 -m pip install --user virtualenv
Example 3: pip3 venv install
python3 -m venv /path/to/new/virtual/environment
source <venv>/bin/activate
Example 4: how to activate the pytho virtual environment
mypthon\Scripts\activate