How to Install Python?
19 Apr 2026
How to Install Python?
1. Go to Python's official website
Type "Python Download" into a search engine or visit python.org/downloads.
2. Choose your version and download the file
Scroll down the page and download the installer appropriate for your operating system. Windows users should select the .exe file.
3. Run the installer
Double-click the downloaded file to open it. Make sure to check the "Add Python to PATH" option at the bottom of the installation window.
4. Start the installation with Install Now
Click the Install Now button and wait for the installation to complete.
5. Verify the installation
Open Terminal or CMD and type the following command:
python --version
How to Install Python – Detailed Step by Step
First, search for the Python version you want to download in a search engine. An example version is shown in the image; the latest Python version currently is 3.15.
After opening the page and scrolling down, you will see a table with download links. Select the one appropriate for your operating system and download it. In the image, we have marked which one to download for Windows.
Double-click the downloaded file to run it. Before proceeding, check the "Add Python to PATH" option at the very bottom of the installation screen. This allows the system to automatically find Python when you run files from the console. If you skip this during installation, you will need to manually map Python later through Windows settings. Click Install Now to begin the installation.
When the installation is complete, it will confirm success — click Close to exit the setup screen.
Open a new CMD window and run the following commands to verify Python is working. If the output looks similar to the image below, Python has been installed successfully on your computer.
python --version
pip --version
How to Install a Library?
One of the most important tools that comes with Python is pip.
pip is a package manager that allows you to download and manage the libraries you need in your Python projects.
To install a module, open the terminal and type:
pip install package-name
For example, you can install the popular requests module:
pip install requests
After installation, you can use it in your code like this:
import requests
List Installed Python Packages
To see which libraries are installed on your computer:
pip list
Update a Python Package
When a new version is released and you want to update:
pip install --upgrade package-name
Uninstall a Python Package
To remove a library you no longer need:
pip uninstall package-name