creating python virtual environment of other version code example
Example 1: how to use virtual environment python
python3 -m pip install --user virtualenv
Example 2: python virtualenv venv
python -m venv venv
python3 -m pip install --user virtualenv
python -m venv venv