Python Setup
Python installation is very easy in all the major platforms like Linux, Unix, Ubuntu, Microsoft, Mac etc. Python also supports by most of the Operating System more well as world widely available Operating Systems like Linux, Unix, Ubuntu, Microsoft, Mac etc. Python is also cross platform programming language. So Python interpreter runs on all important Operating System all over the world.
Linux/Ubuntu Installation
We can setup a python easily in our working machine and laptop. In Linux / Ubuntu system, Python is installed by default. We can check that installed version simply by typing the following command on terminal
$ python
$ python3
The above command simply returns the installed version of python. we can upgrade the latest version through command in terminal.
Windows Installation
For installing python on windows, we need to download the latest windows installer from following official URL.
You can the installer for 32/64 bits based on your system requirement from the above URL. Once you downloaded, double click on the installer, It starts the python installation your system.
Windows 32 bit installer
Windows 64 Bit Installer
After ran the installer go to the command prompt and check the python use the following command
c:\> python
If the python is installed successfully, It returns the version and command line mode of python otherwise throws error. If throws error, Please setup the environment variables in Computer properties then it will works properly.
Setup the environment variables in Windows
Go to My Computer or This PC and right click select Properties and choose Advanced system settings and setup the environment variables.
This PC -> Right Click -> Properties -> Advanced system settings ->Environment Variables -> System -> Edit Path -> Append Executable path of Python -> Save -> Click Ok up to back to Advanced system settings the close the window.
Mac Os Installation
Python already installed on most of the Mac Os. You can upgrade your python to most latest version. Once upgrade you can check whether the the python is running or not in your Operating System. The command for check the python is as follows.
$ python
$ python3