Python has become one of the most popular programming languages of the 21st century. It is being used for multiple purposes in various sectors of business. Developers use Python for building applications and developing websites. Data Engineers use Python for performing data analysis, statistical analysis, and building machine learning models.
By default, Python is usually not installed on Windows. However, you can check if it exists on the system by running one line of command on the command prompt: python--version
To download Python, you need to visit www.python.org, which is the official Python website.
Click on the Downloads tab and then select the Windows option.
This will take you to the page where the different Python releases for Windows can be found. Since I am using a 64bit system, I’ll select “Windows x86-64 executable installer”.
Once the executable file download is complete, you can open it to install Python.
Click on Run, which will start the installation process.
If you want to save the installation file in a different location, click on Customize installation; otherwise, continue with Install Now. Also, select the checkbox at the bottom to Add Python 3.7 to PATH.
Once the installation is complete, the below pop-up box will appear: Setup was successful.
Now that the installation is complete, you need to verify that everything is working fine.
Go to Start and search for Python.
You can see Python 3.7 (64-bit) and IDLE. Let’s open IDLE, which is the short form for Integrated Development Environment, and run a simple print statement.
As you can see, we have successfully printed “Hello World” in Python Shell. Using the Python Shell, you can write one line of code and execute it by pressing Enter.
Python also has a command-line interpreter that works similarly to Python IDLE. Let’s print “Hello world” in the command-line.
Python’s command-line interpreter and IDLE are suitable for any beginner to start with. However, to work in a developer environment and build large scale projects, you should use other popular IDEs and code editors, such as PyCharm, Atom, and Sublime Text. You can also try out the Anaconda Distribution of Python, which has Jupyter Notebook and Spyder.
I hope this was helpful, and you were successfully able to download and install Python on Windows. To get more in-depth training, sign up for Simplilearn’s Data Science with Python Training Course today!