how to run a code in a certain environment in python code example
Example 1: python venv
python3 -m venv /path/to/new/virtual/environment
Example 2: how to use virtual environment python
python3 -m pip install --user virtualenv
python3 -m venv /path/to/new/virtual/environment
python3 -m pip install --user virtualenv