Python is cross-platform and is available to install in wide variety of operating systems. Let us setup the development environment before getting our hands dirty. This tutorial covers the installation steps for Microsoft Windows platform. The instructions and binary packages for other platforms are provided in the URL https://www.python.org/download/other/.
Click the ‘Download Python x.x.x.’ button (select the appropriate version). The version 2.7.x is still actively used by numerous applications and since not many applications could be easily forward-ported to Python 3.x.x, the 2.7.x line is still being supported. Currently, the end-of-life support for version 2.7.x has been set as 2020. Any new development is suggested to be done using the latest version, which is 3.x.x.
Once the executable(.exe/.msi) file is download, run the file. Ensure that the correct version of executable is downloaded based on the architecture of your PC i.e., 32 or 64bit. The binaries for different versions can be found at https://www.python.org/downloads/windows/.
Select the ‘Add Python x.x to PATH’ option displayed in the bottom of the setup window so that the environment variables will be added automatically. Click the ‘Install Now’ option to run the installation and finish the setup of Python
The installation process will take few minutes to complete and once it is done, the following screen will be displayed with the success message which confirms that Python has been successfully installed in your PC.
Verify the Installation
To verify whether Python has been successfully installed in your PC, open ‘Command Prompt’ and enter the command ‘python –version’ as shown below. The output will display the installed version number of Python to confirm that the setup is successful and is ready for development.
In the next tutorials let us start learning the constructs of the language to start developing interactive applications.