Download Python

Python is an open-source programming language. You may download the latest version of Python from its official website. As of the time of writing of this tutorial the latest version is Python 3.8.4.
         You can also download python in your desired version from here.

Install Python on Windows 10

Simply follow the installation wizard. Check the Add to Path option during installation.

Python installation

To verify installation run in command prompt:

python --version

Install Python on Mac

Mac OSx comes preloaded with Python 2.7. Install Python3 by visiting python.org simliar to Windows Python installation.

To set alias of python3 to python run the following commands in the terminal:

vi ~/.bash_profile
alias python=python3
source ~/.bash_profile

Install Python on Ubuntu Linux

Ubuntu 16.04 or higher distributions comes preloaded with Python3. However the package manager pip in not present. To install pip3 run:

sudo apt install python3-pip

To set alias of python3 to python run the following commands in the terminal:

vi ~/.bashrc
alias python=python3
source ~/.bashrc

PIP - Package Manager for Python

pip is the package manager that gets installed under the Scripts sub-directory in python installation directory. It helps to obtain, download and install the python packages listed under PyPI (Python package index).

To upgrade pip, run:

python -m pip install --upgrade pip

To verify pip version, run:

pip --version

To find list of packages installed, run:

pip list

To install a new package, run:

pip install package_name