Thanks for Visiting here

How To Install Python on Windows
Step 1: Select Version of Python to Install
The installation procedure involves downloading the official Python .exe installer and running it on your system.
Step 2: Download Python Executable Installer
- Open your web browser and navigate to the Downloads for Windows section of the official Python website.
- Search for your desired version of Python. At the time of publishing this article, the latest Python 3 release is version 3.7.3, while the latest Python 2 release is version 2.7.16.
- Select a link to download either the Windows x86-64 executable installer or Windows x86 executable installer. The download is approximately 25MB.
Step 3: Run Executable Installer
1. Run the Python Installer once downloaded. (In this example, we have downloaded Python 3.7.3.)
2. Make sure you select the Install launcher for all users and Add Python 3.7 to PATH checkboxes. The latter places the interpreter in the execution path. For older versions of Python that do not support the Add Python to Path checkbox, see Step 6.
3. Select Install Now – the recommended installation options.
For all recent versions of Python, the recommended installation options include Pip and IDLE. Older versions might not include such additional features.
4. The next dialog will prompt you to select whether to Disable path length limit. Choosing this option will allow Python to bypass the 260-character MAX_PATH limit. Effectively, it will enable Python to use long path names.
Step 4: Verify Python Was Installed On Windows
- Navigate to the directory in which Python was installed on the system. In our case, it is C:\Users\Username\AppData\Local\Programs\Python\Python37 since we have installed the latest version.
- Double-click python.exe.
- The output should be similar to what you can see below:
Step 5: Add Python Path to Environment Variables (Optional)
We recommend you go through this step if your version of the Python installer does not include the Add Python to PATH checkbox or if you have not selected that option.
Setting up the Python path to system variables alleviates the need for using full paths. It instructs Windows to look through all the PATH folders for “python” and find the install folder that contains the python.exe file.
1. Open the Start menu and start the Run app.
2. Type sysdm.cpl and click OK. This opens the System Properties window.
3. Navigate to the Advanced tab and select Environment Variables.
4. Under System Variables, find and select the Path variable.
5. Click Edit.
6. Select the Variable value field. Add the path to the python.exe file preceded with a semicolon (;). For example, in the image below, we have added “;C:\Python34.”
7. Click OK and close all windows.
By setting this up, you can execute Python scripts like this:
Python script.py
Instead of this:
C:/Python34/Python script.py
As you can see, it is cleaner and more manageable.
Tags:-
How to download python and install,setup paython in windows