Python Download Install

Download Python

Python is an open-source programming language. As of the time of writing of this tutorial the latest stable version is Python 3.8.10. You may download Python 3.8.10 from the official website by clicking here.

Install Python On Windows 10 & 11

Simply follow the installation wizard and make sure to check the Add to Path option during installation.

To verify successful installation on Python on your windows machine run the following command:

python --version

PIP - Package Manager For Python

pip is the package manager that gets installed under the Scripts sub-directory in the python installation directory. It helps to obtain, download and install the python packages listed under PyPI (Python package index). However you must upgrade pip after Python installation to get new packages and updated versions of existing packages.

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 freeze

To install a new package, run:

pip install package_name

Install Python On Ubuntu Linux

All Linux operating systems including Ubuntu comes pre-installed with python3. However, the package manager pip may not be 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

Install Python On Mac

Mac OSx comes pre-installed with Python 2.7. Installation steps from Python 3.8.10 is similar to the one for windows, described above.

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

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

Python IDE and Popular Editors

Python has the IDLE code editor built-in. You may also opt from a variety of code editors like:

  1. Jupyter Notebook
  2. PyCharm
  3. Visual Studio Code
  4. Sublime Text
  5. Atom etc.

Jupyter notebook is popular among data engineers and machine learning enthusiasts. It can be installed with a simple pip command:

pip install jupyter

after this, the jupyter notebook editor can be started by running:

jupyter notebook 

You may then select New -- Python 3 file option and start python programming.