Linux Articles

How To Install Python3.6 In Ubuntu

How To Install Python3.6 In Ubuntu

Python’s default version will be installed as 2.7 which does not support many latest codes. Here is the simple steps to update Python3.6 on top of Python 2.7 in Ubuntu machine,

Python3.6 installation procedure can be in 2 ways,

  1. Updating repositories and install

Method 1:

Updating repositories and install:

$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt-get update
$ apt-get install software-properties-common python-software-properties
$ sudo apt-get install python3.6

If Respos are already exist run the following,

$ sudo apt-get update
$ sudo apt-get install python3.6

After successful installation check python version using below command,

$python3 -V

In case Method one fails , try the second

Method 2:

Download Source and deploy Python3.6 :

  • Download and extract the tar file,
$tar -xvf Python-3.6.3.tgz
  • Go to the extracted files and run configure this will ready your system to install python3.6
$cd Python-3.6.3
  • If you see any errors while running configure install dependency packages ,
$apt-get install build-essential
$apt-get install zlib1g-dev
$apt-get install software-properties-common python-software-properties
  • Now run make command to install python3.6,
$make install
  • Check the python version,
$ python3.6 -V

Tags: python,Python 2.7,Python3.6, Python in ubuntu,Python install,tech news,mytecharticle,ubuntu deploy

About the author


Add Comment

Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.