How to Get Started With Python?

In this article, you will learn to install and run Python on your computer.

Introduction – Python is a programming language and is available in all platform like Windows, Mac, and Linux etc. It has been used several times by some giant companies too like Google, Amazon and Microsoft etc. for Web Developing, Machine Learning, Image Processing and Data Handling etc.

Getting started with Python –

Day by day as technology is going to upgrade and now PC is moving to programming language to get new updates in large scale in field of technology. Python is one of the most usable programming languages by developers and therefore now Python is already Pre-installed on every platform whether it is Windows and Mac or any other OS.

Installation of Python in Windows

To check if Python is already installed in Windows – In Windows PC, either press the Windows key to search Python, or search cmd or search Windows PowerShell and run the following code on the Command Line:

Type Python in search bar to check, if Python is installed –

Python Installation

Above image shows clearly that Python version 3.9 is installed.

Note: If it is not installed, you can download it from python.org

Check with Windows PowerShell

Type Windows PowerShell in search bar to check, if Python is installed –

Now write following code in Windows PowerShell

python or python --version or python -V
Python Installation

Any output, such as Python 3.9.1 means, python is installed.

Check with Command Prompt or in short-form cmd

Type cmd in search bar to check, if Python is installed –

Now write the following code in cmd –

python --version or python -V
Python Installation

Any output, such as Python 3.9.1 means, python is installed.

Installation of Python in Mac

To check if Python is already installed in Mac – In MacOS, open the Terminal and type:

python --version
$ python --version
Python 3.9.1

Any output, such as Python 3.9.1 means, python is installed.

Note: Python version 2 is no longer in support in Mac since Jan 1. 2020. Therefore only Python version 3.0 or more can be installed.

Installation of Python in Linux

For Python Version 3

To check if Python is already installed in Linux – In Linux, open the command line and type:

python3
Python Installation
Any output, such as Python 3.8.2 means, python is installed.

If Python is not installed, then write following code in terminal –

$ sudo apt-get install python3

After it, you will see Python is installed. Now let’s check again.

To check Python Version, type following code –

python3 --version
Python Installation
Any output, such as Python 3.8.2 means, python is installed.

Note – Python has different versions and it carries some changes in them as well. In Python there are some codes which specifically works on their specific version so be careful regarding its version.

If you find anything incorrect in above discussed topic and have any further question, please comment down below.

Follow Us

1 thought on “How to Get Started With Python?”

Leave a Comment

Stay in the loop

codingstreets