How to install Python 3.6 on Ubuntu?

To install Python 3.6 on Ubuntu, you can follow these steps:

  1. Open the terminal.
  2. Update the system software package list.
sudo apt update
  1. Tool for installing supporting software packages:
sudo apt install software-properties-common
  1. Add the deadsnakes PPA repository.
sudo add-apt-repository ppa:deadsnakes/ppa
  1. Update the list of software packages:
sudo apt update
  1. Install Python 3.6:
sudo apt install python3.6
  1. Install the pip package manager for Python 3.6.
sudo apt install python3-pip
  1. Verify the installation of Python 3.6:
python3.6 --version

Now, you should have successfully installed Python 3.6 on Ubuntu.

bannerAds