Python is a widely used high-level programming language. To write and execute code in python, we first need to install Python on our system.
Install Python on Windows takes a series of few easy steps.
Step 1: Download the Python Installer binaries
- Open the official Python website in your web browser. Navigate to the Downloads tab for Windows.
- Choose the latest Python 3 release. In our example, we choose the latest Python 3.11.1 version.
- Click on the link to download Windows x86 executable installer if you are using a 32-bit installer. In case your Windows installation is a 64-bit system, then download Windows x86-64 executable installer.
Step 2: Run the Executable Installer
- Once the installer is downloaded, run the Python installer.
- Check the Install launcher for all users check box. Further, you may check the Add Python 3.11 to path check box to include the interpreter in the execution path.
- Select Customize installation. Choose the optional features by checking the following check boxes:
- Documentation
- pip
- tcl/tk and IDLE (to install tkinter and IDLE)
- Python test suite (to install the standard library test suite of Python)
- Install the global launcher for `.py` files. This makes it easier to start Python
- Install for all users.
- Click Next.
- Select the Install for all users and Add Python to environment variables check boxes.
- Optionally, you may select the Associate files with Python, Create shortcuts for installed applications and other advanced options. After selecting the Advanced options, click Install to start installation.
- Once the installation is over, you will see a Python Setup Successful window
Ref: What Can I Do With Python?
Step 3: Verify the Python Installation
To ensure if Python is succesfully installed on your system. Follow the given steps −
- Open the command prompt.
- Type ‘python’ and press enter.
- The version of the python which you have installed will be displayed if the python is successfully installed on your windows.
Step 4 − Verify Pip was installed
Pip is a powerful package management system for Python software packages. Thus, make sure that you have it installed.
To verify if pip was installed, follow the given steps −
- Open the command prompt.
- Enter pip –V to check if pip was installed.
- The following output appears if pip is installed successfully.
We have successfully installed python and pip on our Windows system.