How To Install Latest Version Of Python In Ubuntu
Python is the fastest-growing major general purpose programming language. At that place are a number of reasons attributed to this, such as its readability and flexibility, piece of cake to acquire and use, reliable and efficient likewise.
There are two major Python versions existence used – 2 and three (the present and future of Python); the onetime volition come across no new major releases, and the later on is under active development and has already seen a lot of stable releases over the last few years. The latest stable release of Python 3 is version 3.6.
Ubuntu 18.04 every bit well every bit Ubuntu 17.ten come with Python three.six pre-installed, which is non the case for older Ubuntu versions. In this article, we will explain how to install latest Python three.6 in Ubuntu 14.04, 16.04, 16.10 and 17.04 via the APT package manager.
To install Python iii.6 from sources in all major Linux distributions, cheque out this guide: How to Install Latest Python 3.6 Version in Linux
Install Python 3.6 in Ubuntu fourteen.04 and 16.04
Past default, Ubuntu xiv.04 and 16.04 ship in with Python 2.7 and Python 3.5. To install latest Python 3.6 version, you can utilize "deadsnakes" team PPA which contains more contempo Python versions packaged for Ubuntu.
$ sudo add-apt-repository ppa:deadsnakes/ppa $ sudo apt update $ sudo apt install python3.6
Install Python three.vi in Ubuntu xvi.ten and 17.04
On Ubuntu sixteen.10 and 17.04, you tin find Python 3.six package in the Universe repository and easily install information technology via apt as shown.
$ sudo apt update $ sudo apt install python3.half-dozen
To view a list of all Python binaries installed on your system, run the following ls command.
$ ls -l /usr/bin/python*

From the output in the screenshot above, the default Python version on the examination system is 2.7, you can also check Python version using the following command.
$ python -V
To utilise Python iii.6, invoke the following command.
$ python3.six

To leave the Python interpreter, blazon the post-obit command and press Enter.
quit() OR get out()
That's all! In this curt commodity, we take explained how to install Python iii.half dozen in Ubuntu 14.04, 16.04, 16.ten and 17.04 via the APT package manager. If you lot have questions, use the annotate form below to reach us.
If You lot Appreciate What Nosotros Do Hither On TecMint, You Should Consider:
TecMint is the fastest growing and most trusted customs site for any kind of Linux Manufactures, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.
If you similar what you are reading, please consider ownership us a coffee ( or ii ) as a token of appreciation.
We are thankful for your never ending support.
Source: https://www.tecmint.com/install-python-in-ubuntu/
Posted by: perduewopmetuand.blogspot.com
0 Response to "How To Install Latest Version Of Python In Ubuntu"
Post a Comment