Install or Upgrade to Python 3.6.5 in Ubuntu 16.04 /14.04
Posted: Wed May 16, 2018 3:11 pm
Python 3.6.5 was released on 2018-03-28. This version of (Python 3.6.5) is the fifth maintenance release of Python 3.6. The Python 3.6 series contains many new features and optimizations. See more Python Release 3.6.5
Installation Procedure
Download Python 3.6.5:
Uncompress/untar Python 3.6.5 and move to its directory:
Install Python 3.6.5:
-j8 literally means use 8 threads to build in parallel. type "man make | grep jobs" in a terminal to see its documentation.
Use altinstall if you want to keep previously installed version(s)
Use install if you want to replace previously installed version(s)
Test Python 3.6.5 by typing:
You should see something like this:
Once the installation works, check its launching path:
Finally, change the links for python3.6 binary in order to be able to evoke Python 3.6.5 by just typing python3 instead of python3.6:
See also
Updating Python on Ubuntu System
Note: Be carefully when deciding to remove the previous/old versions of Python from Ubuntu Linux, Find out why:
Physically uninstalling Python 3.4
How to remove Python 2 in Ubuntu 16.04
Installation Procedure
Download Python 3.6.5:
Code: Select all
$wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
Code: Select all
tar xvf Python-3.6.5.tgz
cd Python-3.6.5/
Install Python 3.6.5:
Code: Select all
./configure --enable-optimizations
Code: Select all
make -j8 #This step may be lengthy and/or slow
Use altinstall if you want to keep previously installed version(s)
Code: Select all
$sudo make altinstall
Code: Select all
$sudo make install
Code: Select all
$python3.6
Code: Select all
Python 3.6.5 (default, May 16 2018, 13:36:12)
[GCC 4.8.5] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Code: Select all
$ which python3.6
/usr/local/bin/python3.6
Code: Select all
sudo ln -s /usr/local/bin/python3.6 /usr/local/python3
Updating Python on Ubuntu System
Note: Be carefully when deciding to remove the previous/old versions of Python from Ubuntu Linux, Find out why:
Physically uninstalling Python 3.4
How to remove Python 2 in Ubuntu 16.04