Advertisement



< Prev
Next >



How to Download and Install Python




In order to code in Python, we need to download and install its latest stable release(a stable version). At the time of writing this article, the latest release of Python is 3.7.3, which could be downloaded from the Python website.


Advertisement




Installing this latest release installs all the useful components of Python, such as - a standard library, test suite, IDLE IDE(integrated development environment), documentation, python launcher, etc. So, let us see how to download and install Python.



  1. In order to download and install the latest release of Python, you have to open the Python website and click on the Downloads button on the website, as displayed in the picture below.

  2. Figure 1




  3. Clicking on the download button takes you to a new webpage, with a message Download the latest version for Windows(as we have a Windows Operating system), and a yellow download button just underneath this message which says Download Python 3.7.3, as shown in the picture below. We need to click on this yellow download button.

    Note: For those who want to install Python on a different Operating System, such as MAC, Linux, UNIX, please click on the name of your preferred OS.


  4. Figure 2





  5. As soon as you click on the download button that you wish to install, a new window will pop-up on your screen, asking you Save the file or Cancel, please click on Save and the Python-3.7.3.exe file will be downloaded.



    Figure 3





  6. Once the Python's .exe file is downloaded, you need to double click on it and you will be displayed an installation window, in which you need to click on the blue button which says Install Now, which will install the Python in its default location and with the default settings, unless you want to customize the installation by clicking on the Customize Installation button(which we will not do).



  7. Figure 4





  8. In the next window, you are shown a progress bar, displaying the installation progress all useful components of Python(as shown in the picture below), such as -
    • Development Libraries
    • Executables
    • Standard Library
    • Test Suite
    • Core-Interpreter
    • Documentation
    • Python Launcher
    • pop bootstrap etc.


    Figure 5





  9. After the installation is over, a window displaying a message about the successful installation of Python is shown.


  10. Figure 6

    Click on the Close button and that's it, The latest version of Python i.e. 3.7.3 has been successfully installed in our system.




    Setting the environment variables for Python


    To set the environment variables of Python, you would have to click on -
    • Computer --> System Properties --> Advanced System Settings.
    • In the Advanced tab, click the Environment variables button.
    • Next, In the section of System Variables find the variable - Path and click on the Edit... button.
    • Next, append the path to the directory of Python installed on your system and please don't forget to add a semicolon; at the beginning of this path, only if there was no semicolon; at the end of the last variable.
    • Click OK. Restart the Command Prompt to reflect the applied changes.



    After restarting the Command Prompt, type in command - python at the command prompt and you will be displayed a set of information as shown in the picture below.

    Figure 6



    In the next tutorial, we are going to show you to create your first program in Python using an IDE(integrated development environment). Apparently, there are many IDEs available for coding in Python like PythonWin, ActivePython, PythonIDE, etc, but, we are going to use the IDLE IDE, which is also installed by installing the Python, as explained in this tutorial.


    Like the tutorial? Yes? Please, share it or please like our social media channels. Thank you!


    Please share this article -





    < Prev
    Next >
    < Introduction to Python
    The First Python Program in IDLE >



    Advertisement

Please Subscribe

Please subscribe to our social media channels for daily updates.


Decodejava Facebook Page  DecodeJava Twitter Page Decodejava Google+ Page




Advertisement



Notifications



Please check our latest addition

C#, PYTHON and DJANGO


Advertisement