to install Python 3.6 on Ubuntu 18.04 LTS you need Ubuntu 18.04 LTS operating system and active internet.
Now lets start with a simple three commands.
sudo apt update
sudo apt dist-upgrade
sudo apt install python3-pip
We finished now but some people use
python-all in the installation process. minimal package intended to avoid hard-coded dependencies on python versions. , the difference is pretty minimal. For the most part, start tinkering with what is installed. You’ll probably find that everything is there. If it isn’t, look for a package or use