Python Installation


Installing Python is very easy.

you can install python by using GUI (graphical user interface) from official python.org. or by using package managers. 

let check by using GUI. please follow below steps.

Install python on windows

  • Go to python.org and download the exe file from Download section of page.
  • Open it in your computer, on windows it should look like this.
  • Once done open your computers terminal and type on python -version gives you current installed version or simply python It should give you following output.

OR Simply using pip which is package manager.

use following command on windows terminal -

pip install python

Install python on Mac

The same steps applies to mac also only difference will be in file type. install python with homebrew

Optionally for mac you can install python with homebrew. Run following command to install python.

  • Open terminal
  • brew install python
  • Pulls the latest version and install it. 

Install python on Ubuntu

  • Open a terminal window by pressing Ctrl + Alt + T, then run the following command -

    sudo apt update

  • Once the package index is updated, you can install Python by running -

    sudo apt install python3

  • After the installation is complete, you can verify that Python is installed correctly by checking its version -

    python3 --version

Lets do quick example, click on run button to see the output.

print("Just installed python, hurray!!")