Python Tutorial



Python Tutorial

How to install python in windows


Python, a programming language known for its simplicity and versatility, is in increasing demand across industries. As professionals striving for efficiency and excellence, it's essential to have a seamless setup for Python on our computers. In this tutorial, we'll guide you through how to install Python on Windows operating system.


A staple for developers, Python's installation on Windows is more than just a few clicks. This tutorial will provide an in-depth approach to ensure that the Python environment on your Windows machine is set up correctly, along with the steps on how to install Python on Windows, allowing you to harness its full capabilities without hindrance.

How to Install Python?  

While the installation process may seem straightforward, each step is crucial. Let's take a look at the core considerations before delving into the installation:

  • Operating System Platform: Our main focus is installing Python on Windows 10, given its widespread use among professionals.

  • Version Insights: It's recommended to opt for the most recent version of Python to harness the latest features.

  • Compatibility Checks and User Rights: Ensure your Windows version is compatible with the chosen Python version. Furthermore, possessing administrative rights simplifies the installation.

Steps to Install Python on Windows

The process of installing Python on Windows is seamless, but attention to detail at each step ensures an error-free installation. Follow these steps to guarantee the best Python experience on your Windows system:

  1. Navigating the Official Site: Begin by visiting Python's official website to access genuine and safe installation files.

  2. Choosing the Right Version: The 'Downloads' section on the site provides a dedicated 'Windows' tab, which should be your go-to choice.

  3. 32-bit or 64-bit: Depending on your system architecture, select the appropriate installer to ensure smooth performance.

  4. Execution: After downloading the installer, execute it. This will initiate the setup process, allowing you to customize settings or proceed with defaults.

How to Download Python: Downloading The Right Version

Embarking on your Python journey starts with acquiring the right installer. This process is pivotal to ensure a smooth transition into the world of Python programming on Windows:

  1. Route of Least Resistance: One of the most uncomplicated ways is to head straight to the official Python website. This portal is meticulously curated, spotlighting the versions most congruent with Windows platforms. Not only does this guarantee a genuine source but it also ensures you get the version tailored for optimum performance on your system.

  2. Tailored Acquisitions: While many professionals seek the newest and brightest versions of Python, some scenarios demand older editions or specific versions to meet unique project requirements. This is where the Python archive shines. An extensive repository, the archive is a treasure trove, housing legacy versions alongside extensive documentation. Whether you're looking to recreate a vintage Python environment or need a version that's no longer mainstream, this section ensures you're covered.

  3. Safeguarding Compatibility: Embarking on the download journey isn't solely about clicking the 'download' button. It's imperative to pause and validate the compatibility of your chosen Python edition with your Windows version. This step, though often overlooked, is the linchpin ensuring that subsequent installation and operation are glitch-free.

How to Run the Executable Installer

This stage is where your interaction shapes the software's behavior on your system. With the installer at hand, it's time for action:

  1. Initiation: Your first move is straightforward. Navigate to where your downloaded installer resides, often in the 'Downloads' folder. Give it a double-click, and behold the magic commence. This action signals your system to prepare for Python.

  2. Deciding the Installation Type: The next interface offers a crossroads. You can choose a customized setup, granting you the liberty to tinker with settings, or a standard installation, wherein Python auto-selects its optimal features for your system. The former caters to specific needs, while the latter ensures a hassle-free experience.

  3. Feature Selection: Python is not just a programming language; it's an ecosystem. This stage in the installation presents a palette of tools and features. It's akin to a buffet - select what aligns with your goals. Do you envision extensive coding and need 'pip' for package management? Or perhaps, given that you're reskilling, exhaustive documentation would be a boon? Here, you sculpt your Python experience.

  4. Directory Assignment: Python, like all software, needs its space—a directory where it'll reside. By default, Python suggests a directory. But if you have strategic plans, such as keeping all programming tools in a specific folder, this step allows that customization. Whether you go with the default or chart a unique path, ensure you remember this directory for future reference.

Setup Progress  

While it might appear as a mere waiting game, the setup progress of Python on your Windows machine is a well-orchestrated symphony of installations and configurations. It’s crucial for you, the user, to be in the know of what's happening. Here’s a thorough breakdown:

  1. Observing the Progress Bar: Think of this as the heartbeat of your installation. This linear, often green, bar stretches itself as the setup progresses. Each incremental shift is a testament to a particular component of Python nestling into your system.

  2. Monitoring Component Installations: Beneath the superficial progress bar lies intricate machinery at work. Each segment of the bar represents the configuration of a specific Python component. It's not just about waiting; it's about understanding what's getting installed. From the core interpreter to libraries, each phase has its significance.

  3. Error Indicators: While Python's installation is generally smooth, variables like system compatibility or previous installations might introduce hiccups. Fear not, for the system remains vigilant. Any discrepancies or challenges faced are promptly flagged, ensuring you're never left troubleshooting in the abyss.

Final Installer Window

As you approach the finish line:

  1. Success Alert: Nothing is more satisfying than seeing a notification declaring the successful installation of Python. It's a sign that you've correctly followed the steps, and Python is now an integral part of your tech repertoire.

  2. Tweaking Options: Before you dive headfirst into coding, the window might present options for some final tweaks. Whether it's environmental variables or path assignments, ensure they align with your operational goals.

  3. Python's Initial Run: With everything in place, it's time for a test drive. Fire up the command prompt and type in some elementary Python commands. A successful output isn't just a function check; it's your first step into the expansive world of Python programming.

Verify the Installation

You can verify your Python installation by following these steps:

  1. Open the Command Prompt: To verify Python installation, you'll need to open the Command Prompt. Here are the steps:

  • Press the Windows key.

  • Type "cmd" or "Command Prompt."

  • Press Enter to open the Command Prompt.

  1. Check Python Version: You can check which version of Python is installed by entering the following command in the Command Prompt:

python --version

This will display the installed Python version. For example, it might show something like Python 3.8.5.

  1. Open Python Interactive Shell (Optional): To start working with Python interactively, you can open the Python interactive shell by typing:


This will bring up the Python REPL (Read-Eval-Print Loop), and you can start entering Python commands.

  1. Exit the Python Shell (Optional): If you're in the Python shell and want to exit, simply type:


Or, press Ctrl+Z followed by the Enter key.

Getting Started with Python

Write and Run a Python Script

To get started with Python scripting, you can create a simple Python script using a text editor. For example, create a file named and add the following code:

print("Hello, World!")

Save the file.

Run the Python Script

You can run the Python script by navigating to the folder where the script is located in the Command Prompt and then entering:


This will execute the script, and you should see the output "Hello, World!" displayed in the Command Prompt.

Install Python Packages (Optional)

If you need to install additional Python packages, you can use the pip command. For example, to install the numpy package, you can use:

pip install numpy

Replace numpy with the name of the package you want to install. For example: pandas for pandas.


Installing Python on Windows, when done right, paves the way for a streamlined coding experience. Armed with this knowledge, you're set to dive into the vast world of Python programming. While on this trajectory of skill enhancement, remember, that continuous learning is the key. Do explore the extensive courses at upGrad to stay ahead in the ever-evolving tech landscape.


1. How does downloading differ from when you want to install Python Windows? 

Downloading refers to acquiring the installer; while installing means setting up the Python environment on the system.

2. Is version selection crucial during Python installation? 

Absolutely. The right version ensures optimal compatibility and access to the latest features.

3. Determining OS type for Python installation: 32-bit vs. 64-bit Windows? 

Go to 'System Information' in Windows. It reveals the OS architecture.

4. What are the alternative methods for how to install Python Windows 10? 

Yes, for instance, package managers like Chocolatey offer an alternate installation route.

5. Multiple Python versions on one Windows machine: Feasible? 

Certainly. However, it's pivotal to manage paths to avoid potential conflicts between versions.

6. How to use Python on Windows?

To use Python on Windows, first, ensure it's installed. Launch the Python interpreter by opening the Command Prompt and typing Python. For scripting, use IDLE or another IDE. Save scripts with a .py extension and run them via the Command Prompt.

Leave a Reply

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