Install Python -

4 min 20 sec read Basic

Python 3 is available for almost all platforms like Windows, Mac and for most of the flavors of Linux.
In this tutorial we are going to focus mainly on how to install Python on Windows PC.

1) Install Python in Mac or Linux

Python is generally pre-installed in Linux and Mac. But if it is not, read these steps and perform the same for your corresponding operating system. Let\'s get started...

If you are Linux or Mac user, Open the terminal and type python 3. If python is installed following message will appear.

Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

2) Install Python on Windows:

You can follow installation process of python with pitcures here.

or follow the steps

Step by step way to install python on Windows is as follows:


1) Click on this link to install python.

2) Download the latest version of Python 3.
(Python 3.6.1 at the time of writing. It may be different when you are reading this but steps to install are pretty much same.)

3) Move this file to a more permanent location, so that you can install Python (and reinstall it later, if necessary).

4) Start the Installing instructions directly below.


1) Double click the downloaded file and click Run if prompted.

2) Select install for all users and click Next. (You can also choose "Install just for me" option if you don\'t want other users on the system to use Python.)

3) You\'ll see it installs under the C:\Python36 folder, click Next.

4) Click Next again for the "Customize Python" step.

5) Click Finish.

Confirm Installation

Python should now be installed. To try to verify installation, navigate to the directory C:\Python34 (or to whatever directory on which you installed Python) double-click the icon/file python.exe. The following pop-up window will appear.

A pop-up window with the title C:\Python34\python.exe appears, and inside the window on the first line is the text Python 3.4.3 ... (notice that it should say 32 bit). Inside the window, at the bottom left, is the prompt >>>: type exit() to this prompt and press enter to terminate Python.

To run the python script from anywhere on the system you need to set the Path variable.

Setting up Path at Widows

At the command prompt type: "path %path%;C:\Python" (without quotes) and press Enter.
Note - C:\Python is the path of the Python directory

Or you can follow the following steps to manually setup Path variable in Windows:

1) Open Control Panel, then System.

2) Click "Advanced system settings" on the left.

3) Click the "Environment Variables" button

4) Under "System variables" click the variable called "Path" then the "Edit..." button. (This will set it for all users, you could instead choose to edit the User variables to just set python as a command prompt command for the current user)

5) Without deleting any other text, add ";C:\Python27;" (include both the semi-colon) to the end of the "Variable value" and click OK.

6) Click OK on the "Environment Variables" window.

Validate the Installation

Press ctrl+R key -> type cmd -> press Enter.

In the command prompt type "python" without quotes and press Enter.

If Python prompt appears you are ready to go to write your first program in Python.


1:1 & 1:Many Mentorship Program

Be job-ready. Learn how to crack the interviews with industry ready training program.

Learn More

Data Structures & Algorithms

What is Dynamic Programming and how to use it

This is a quick introduction to Dynamic Programming.

3 ways to check anagrams

Let's discuss the 3 ways to check anagrams and their time complexity.

Bubble Sort Algorithm

Topics covered: 1) Basics of Bubble Sort Algorithm 2) Worst Case, Best Case complexity

Introduction to Trees

What is a Tree and Terminologies like root, sibling, parent node, children, Leaf node, Ancestor & Descendant, Properties of Tree Data Structure, Depth of node, Height of node

Address Calculation in 2d array

Let's discuss about the Address Calculation using row-major order & column-major order.


Javascript - Postfix Vs Prefix

Let's discuss the difference between postfix and prefix with a practical example.

Javascript Identifiers, Variables

In this session, we will discuss the concept of identifiers, variables and operators in javascript with a practical example.


Bootstrap 4 Tutorial: Modal Popups Made Easy | Live Demo

Let's discuss the Modal Popups in Bootstrap.

How to create a dropdown list in navbar bootstrap

In this video, we will discuss How to create a dropdown list in navbar bootstrap with a practical example.

Navigation tabs in Bootstrap

Let's discuss about the navigation tabs in Bootstrap

Bootstrap Buttons

Let's discuss about the button classes in bootstrap.

Recommended tutorials