Udit Vashisht
Author: Udit Vashisht

Chapter 2 - Quick setup

Chapter 2 - Quick setup

  • 2 minutes read
Chapter 2 -  Quick setup

How to install Python?

It doesn’t matter which OS you are using, Python3 comes with multiple OS compatibility.

Install Python on Windows PC

Follow the steps in this post to install Python on Windows PC.

Install Python on MacOS/Linux

Follow the steps in this post to Python on MacOS or Linux.

Ditching IDLE

Python comes with it’s own shell called IDLE, which is basically an interface where you can directly write your code and execute it:-


But there are plenty of text-editors with plugins, syntax highlighting etc. available for free. So, I will strongly recommend you to use some text-editor with terminal/shell on MacOS and Powershell on Windows.

Terminal on MacOS can be opened by pressing command+space and typing “terminal” or “iterm2” and hitting return. Once opened, you can select ‘keep in dock’ for quick access in future.

If you are on Linux you probably do not need this advice, but look for “shell” or “terminal” in menu for your window manager.

On Windows 7 and above, PowerShell comes pre-installed, if you are on older OS search online for PowerShell installation on your Windows System. Then search in programmes for PowerShell.

Also if you are thinking that “Python IDLE” above is an easier way to quickly check few lines of codes, then you can launch the similar interpreter in terminal or PowerShell by simply typing “python” or “python3”


Text Editors

There are many text editors available e.g. VIM, Visual Studio, Notepad++ etc. but the most common and easy to use text-editors are:-
1. SublimeText3- It can be downloaded and evaluated for free from here. Though, there is currently no enforced time limit for the evaluation but you will keep on getting a popup to remind you to buy the license key time and again.

Screenshot 2019-01-30 at 5.00.45 PM.png
2. Atom- It is an open-source completely free editor developed by GitHub and can be downloaded from here

Note- This post or website is not getting any kind of affliation from SublimeText3 or Atom, they are recommended because of their performance and utility.

Table of Contents

Chapter 1 - Introduction

Chapter 3 - Executing a Python Script

Related Posts

Chapter 4 - Print function
By Udit Vashisht

How to use Python print() function?

In the early days of your python learning, one function that you are going to use the most is the print() function. So, I have decided to add it in the opening chapter of this tutorial. In addition to the print function, you ...

Read More
How to host and schedule your python script on PythonAnywhere?
By Udit Vashisht

In our last post here, we learned how to create a python script which will automatically delete your messages from gmail account based on a query.

The complete ready-to-use code can be found here.

Follow the steps in the above tutorial to download the ‘credentials.json’ file and ...

Read More
Python unittest module - How to test your python code?
By Udit Vashisht

Python unittest module

Why to unit test your python source code?

All programmers want their code to be impeccable, but as the saying goes, to err is human, we make mistakes and leave bugs in our source code. Here is where the unit testing comes to our rescue. If you ...

Read More