Python Basics

How to check if python is already installed?

Mac Operating System and Linux operating system has already python installed. Where as certain application needs python, so such application might have installed python in windows as well. So irrespective of the platform it is best to first check if python is already installed.

How to check if Python is installed in windows 10?

Open command prompt and type following command.

python –version

If python is installed in windows 10, then it would show the version. If not then it would print python is not recognized or similar message.

Wait, in certain cases such as, if python is installed but the home path python software is not set then in such situation, it would not display any message. So set home path for the installed python.

How to check if python is installed in mac os?

Run following command in terminal and if python is installed then it would print its version.

python –version

How to check if python is installed in Linux os?

Run following command in terminal and if python is installed then it would print its version.

python –version

If older version of python is installed then visit following link and install a latest version of python.

https://www.python.org/