On Ubuntu
sudo apt-get install python3-virtualenv
sudo apt-get install python3-setuptools
On Fedora
sudo dnf install python3-virtualenv
sudo dnf install python3-setuptools
sudo pip3 install virtualenv
sudo pip3 install virtualenvwrapper
mkdir -p ~/.virtualenvs
mkdir -p ~/repos
In your ~/.bashrc
put the following:
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/repos
export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source /usr/local/bin/virtualenvwrapper.sh