To work with multiple versions of Python, you have a few options. One of them is to use a virtual manager like pyenv.
Steps to install pyenv on Ubuntu
Note: These were tested on Ubuntu 16.04.
Open a terminal and run:
sudo apt-get install build-essential git libreadline-dev zlib1g-dev libssl-dev libbz2-dev libsqlite3-dev wget
Continue reading “Installing pyenv on Ubuntu”