How to install python on ubuntu 18.04 ? | Install Latest Python

How to install python on ubuntu 18.04 ? |   Install Latest Python

Python is a widely-used programming language. Python provides simple and easy to learn their syntax is very syntax, now a day Python is a popular choice amongst developers.

There is the very simple step you need to follow in order to install python in your ubuntu 18.04 system

we are trying to make the 

Install Python on Ubuntu 18.04 with Sudo Apt

Step 1:-
Check Python Version by typing the following

python3
Check Python Version in ubuntu

Step 2:-
Update you system before installing the python

sudo apt-get update

Step 3:-
If not stalled then type

sudo apt install python3
install python 3 in ubuntu 18.04

If already installed on your system then if you would like to upgrade with the latest version then run following in your terminal

sudo apt-get upgrade python3

Step 4:-
Install Pip- pip is mandatory to install if you want to install any package

pip is a package management system used to install and manage software packages in Python. You can easily install pip in your system you need to run a simple command to install 

sudo apt install -y python3-pip

Command 'pip' not found but can be installed with sudo apt install python-pip

Step 5:-
Install package through pip

pip3 install package_name

 

after pip, you can install more packages that are also required to install so you need to install the following python packages. 

 sudo apt-get install build-essential libssl-dev libffi-dev python-dev

Once all necessary package is installed you can easily set up a virtual environment on your working directory. better to follow python official documentation which is super easy I believe that you can easily do that


The process of installation latest python is the same for all other Ubuntu or Linux version

So, this is a very simple step you need to follow. Most of the cases python, 3 will be already installed in ubuntu 18.04. If you are facing any problem feel free to contact me.

we are also solving the problem through video so please go to my channel and 

Please subscribe so that we will get motivated

your contribution will be appreciated :)

If you want to install latest python  on ubuntu 16.04 then https://www.worldgyan.com/how-to-install-python-on-ubuntu-16-04