using virtual environment code example
Example 1: python venv
python3 -m venv /path/to/new/virtual/environment
Example 2: how to activate the pytho virtual environment
mypthon\Scripts\activate
python3 -m venv /path/to/new/virtual/environment
mypthon\Scripts\activate