Installation of python on windows system
If you are using an old system, then check whether python is already installed in your windows system.
Check whether Python is installed in your system or not
- Open command prompt of your system (press
Win + R
, typecmd
, and press Enter). - Type python -V or python --version in the terminal and press Enter.
If python is already installed in your system, you will get following output.
If not installed before, you will get the following output.
Installation of Python on windows machine (If not installed before)
Step-1 : Download python
Go to official website of python i.e https://www.python.org/downloads/
Download the latest/desired version of python.
Step-2 : Run the Installer
Double-click the downloaded
.exe
file to launch the installer. The following installer wizard will open. Important Note : Check the box that says "Add Python to PATH" at the bottom of the window first and then Click "Install Now" as shown in the above image.
You can see Set up progress and finally installation successful message.
Step-3 : Verify Installation
After the installation finishes:
-
Open Command Prompt (press
Win + R
, typecmd
, and press Enter) again. (Close the earlier opened Command Prompt) Type 'Python -V' or 'python --version' and press Enter.
Step-4 : Test Python
In the same terminal, type 'Python' and press Enter. You should see the >>>
prompt where you can start typing Python code.
To exit the Python shell, type: exit() and press Enter.
Comments
Post a Comment