How to set up and download python for windows

How to set up and download python for windows

In this article we will learn how to download python for windows and set it up to work, for that we have a website called python.org, Now download the latest version available. You can jump to this step if you believe you have already installed it.

Okay before installing we will see what requirements we need to run Python, we have just downloaded the python interpreter that python provides IDLE, but we also need IDE to use it as a developer right? so I suggest you go to Visual Studio Code, or Sublime Text, these two IDEs are found best for using Python or any developing work.

We use VS Code for all demonstrations you can choose VS Code, download, and install it, installation is pretty straightforward.

After installing VS Code go to the extension section and install the following plugins.

Steps to setup VS Code for Python

Open extensions, if you are using windows then press ctrl + shift + x you will see the Extensions tab, search for. This will be the part for downloading python for windows

  • Python extension install it, this is the language support read more.
download python for windows extention for language support for vs code
  • Code Runner helps to run all code in one click, read more.
Code runner extention download python for windows extention for language support for vs code
  • Next is what all developers should have, 🙂 Prettier, which is used as a code format.
Prettier Code runner extention download python for windows extention for language support for vs code

The download python for windows and install steps

Note: The steps will be same for Windows 11, 10, 7 and 8 

After you download Python right click on the .exe file and do run as administrator, then the installation starts, just continue the steps

Step 1: Please select the Add python to path option in the first step as shown below. Then you can continue all steps without any issues.

image 40 download python for windows

Step 2: Click this as the default user, install it now

image 41 download python for windows

Your python gets installed in the next step verify using the next steps.

Step 3: To check whether the python is installed in our system or not.

To do so open Command Prompt, by pressing icons8 windows 10 download python for windows + R this opens run type cmd as shown below and press ok.

run window for using cmd

Next Command Prompt will be open, just type Python in cmd if you the python launcher as output as shown below, then Python is successfully installed and set up in your system.

image 42 download python for windows

If you get an error such as "The system cannot execute the specified program." then follow the below steps

Error The system cannot execute the specified program for Python

This error comes if you forget Step 1 which was specified here, or your system fails to add the Python Script path, in the system environment variables.

The script path will be in your System path which is "C:\Users\YOUR_SYSTEM_NAME\AppData\Local\Programs\Python\Python310\Scripts\" by default, if you have given your own path in Step 2 then please find the Scripts in the specified folder.

And open System environment variables, click, icons8 windows 10 download python for windows search as "path" you will get Edit the system environment variables as shown below, click on it.

image 43 download python for windows

Now go to Environment variables which will be at the bottom, as shown below.

image 44 download python for windows

In user, variables go to Path variable and edit as new, paste the path of your scripts as shown below.

image 45 download python for windows

If still facing the same issue then you can try another way

Open Programs and Features inside the control panel, don't know how to open them? follow the below steps

Step 1: Press icons8 windows 10 download python for windows and search for the Control panel if you used Programs and Features it will be visible in the Recent section, if not then just click on the Control panel.

how to open control panel using windows key

Step 2: Now inside Control Panel, make sure you kept the view by to Large icons as shown below

image 47 download python for windows

Step 3: Search for Programs and Features, which looks like as shown below,

image 48 download python for windows

Step 4: Now inside Programs and Features, search for Python, right-click on it and go to the option Change.

image 49 download python for windows

Step 5: Choose the option Repair.

image 50 download python for windows

Step 6: All done!! now go to cmd and check the python version you can follow this step to verify the python installation. You will get the output as shown below.

pyhton verification for installation is success

Share

Conclusion

This was an article we discussed How to set up and download python for windows, If you have any queries leave a comment down below we will reply as soon as possible, cheers Solutiongigs.com

Leave a Comment

Your email address will not be published. Required fields are marked *