how to make a virtual environment in python for ubuntu code example
Example 1: how to create a virtual environment in python ubuntu
python3 -m venv name_environment
source name_environment/bin/activate
Example 2: python virtualenv ubuntu
$ pip install virtualenv
$ pip install virtualenvwrapper
// Append ~/.bashrc
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_VIRTUALENV=/$HOME/.local/bin/virtualenv
source ~/.local/bin/virtualenvwrapper.sh