see whats install python virtual environment code example
Example 1: create a virtual environment python 3
python3 -m venv /path/to/new/virtual/environment
Example 2: how to make virtual environment
virtualenv mypython
python3 -m venv /path/to/new/virtual/environment
virtualenv mypython