How to install Python in Ubuntu

  • Open the Linux terminal and execute the following command
    => sudo apt update
  •  Update the available packages
    => sudo apt upgrade
  • Paste the following command in terminal and execute
    => sudo apt install python[version number]
  • The following command will be used to start accessing the Repository of the Python Module
    => sudo apt install software-properties-common
  • Download the Python Package
    => sudo add-apt-repository ppa:deadsnakes/ppa
  • Install Python
    => sudo apt install python[version number]
  • Install Python on Ubuntu using the source link
  • Browse to official Python Page and copy the  Gzipped source tarball  link foe any version
  • Paste link in terminal as following
    => sudo wget <Copied Link>
  • Extract the downloaded file
    => tar -xf <TGZ File Name>.tgz
  • Configure Python file
    => ./configure –enable-optimizations
  • Install Python
    => sudo make install

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top