virtualenv is a tool to create isolated Python environments. You can read more about it in the Virtualenv documentation. This article provides a quick summary to help you set up and use a virtual environment.
A Note About Python 3.6 and Ubuntu 16.04 LTS
If you’re running Ubuntu 16.04 LTS (or and earlier version), Python 3.5 is likely installed by default. Don’t remove it! To get Python 3.6, follow the instructions in this section.
Add the PPA
Run the following command to add the Python 3.6 PPA.
sudo add-apt-repository ppa:jonathonf/python-3.6
Check for Updates and Install
Check for updates and install Python 3.6 via the following commands.