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.
- Code Runner helps to run all code in one click, read more.
- Next is what all developers should have, 🙂 Prettier, which is used as a code format.
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
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.
Step 2: Click this as the default user, install it now
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 +
this opens run type cmd as shown below and press ok.
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.
If you get an error such as
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, search as "path" you will get Edit the system environment variables as shown below, click on it.
Now go to Environment variables which will be at the bottom, as shown below.
In user, variables go to Path variable and edit as new, paste the path of your scripts as shown below.
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 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.
Step 2: Now inside Control Panel, make sure you kept the view by to Large icons as shown below
Step 3: Search for Programs and Features, which looks like as shown below,
Step 4: Now inside Programs and Features, search for Python, right-click on it and go to the option Change.
Step 5: Choose the option Repair.
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.
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