How to install Python 3.6 on Ubuntu Linux; Install Python via Ubuntu command line. Also learn how to run Python in Ubuntu Systems. Python 3.6.0 is the newest major release of the Python language, and it contains many new features and optimizations.
What’s New In Python 3.6
Among the new major new features in Python 3.6 are:
- PEP 468, Preserving Keyword Argument Order
- PEP 487, Simpler customization of class creation
- PEP 495, Local Time Disambiguation
- PEP 498, Literal String Formatting
- PEP 506, Adding A Secrets Module To The Standard Library
- PEP 509, Add a private version to dict
- PEP 515, Underscores in Numeric Literals
- PEP 519, Adding a file system path protocol
- PEP 520, Preserving Class Attribute Definition Order
- PEP 523, Adding a frame evaluation API to CPython
- PEP 524, Make os.urandom() blocking on Linux (during system startup)
- PEP 525, Asynchronous Generators (provisional)
- PEP 526, Syntax for Variable Annotations (provisional)
- PEP 528, Change Windows console encoding to UTF-8
- PEP 529, Change Windows filesystem encoding to UTF-8
- PEP 530, Asynchronous Comprehensions
Install Python 3.6 On Ubuntu
Run the following commands in Terminal to install Python 3.6 on Ubuntu 16.10, Ubuntu 16.04 and other Ubuntu Derivatives:
$ sudo apt-get update
$ sudo apt-get -y upgrade
$ sudo apt-get install build-essential checkinstall
$ sudo apt-get install build-essential libssl-dev libffi-dev python-dev
$ sudo apt-get install libreadline-gplv2-dev libncurses
$ sudo apt -y install gcc make zlib1g-dev
$ sudo wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz
$ sudo tar xJf Python-3.6.0.tar.xz
$ sudo cd Python-3.6.0
$ sudo ./configure
$ sudo make
$ sudo make install
Once installed, run the command “$ which python3” and “$ python3 -V” to check the version of Python installed on the System.
Please Note: If you are building Python from source, beware that the OpenSSL 1.1.0c release, the most recent as of this update, is known to cause Python 3.6 test suite failures and its use should be avoided without additional patches. It is expected that the next release of the OpenSSL 1.1.0 series will fix these problems