How to Install PIP in Python on Windows 10 and 11 - Tutorial Guide

If you’re working with Python on Windows, you’ll likely need PIP, Python’s package installer, to download and manage libraries. In this guide, I’ll walk you through how to install PIP in Python on both Windows 10 and Windows 11, whether you missed it during installation or need to add it manually. Follow along step-by-step to ensure that Python and PIP are set up correctly on your system.

How to Install PIP in Python on Windows 10 and 11 (Step-by-Step Guide)

Key Takeaways

  • Learn how to install PIP during Python installation or add it manually afterward.
  • Verify Python and PIP installation through the command prompt.
  • Steps to update PIP to the latest version and ensure Python and PIP are added to the system path.

Installing PIP During Python Installation

The easiest way to install PIP is during the Python installation process itself. If you’re installing Python for the first time, follow these steps:

Python Setup with 'Install Now' highlighted.
  1. Start the Python Installer: When you run the Python installer, make sure to select “Customize Installation.”
  2. Check the PIP Option: Ensure the box for “Install PIP” is checked. This will allow you to install additional Python packages using PIP later.
  3. Complete Installation: Continue with the installation process, and PIP will be installed along with Python.
Install PIP as an optional Feature during Python setup.

If you prefer a detailed guide on installing Python, check out my Python installation guide for Windows 10 and 11.

Verifying Python and PIP Installation

Once Python is installed, you’ll want to verify that everything is working correctly. Here’s how to do it:

Checking Python Installation

Open Command Prompt on Windows 11.
  1. Open Command Prompt: Search for “CMD” in the Windows search bar and open the Command Prompt.
  2. Verify Python: Type the following command and press enter: python --version
    • If Python is installed correctly, you’ll see the version number displayed.
Checking Python version.

Checking PIP Installation

Testing if PIP is installed.
  1. Verify PIP: In the Command Prompt, type: pip help
    • If PIP is installed, you’ll see a list of PIP commands.
    • If PIP is not installed, you’ll receive an error message saying PIP is not recognized.

Installing PIP Manually

If PIP wasn’t installed with Python, you can manually install it. Here’s how:

Manually install PIP in Python.
  1. Get the Command: Copy the command: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  2. Run the Command: Paste it into your Command Prompt and press enter.
  3. Start PIP Installation: Next, copy and run this command: python get-pip.py
Start PIP installation.

Upgrading PIP to the Latest Version

Keeping PIP up to date is important to ensure compatibility with the latest Python packages. To upgrade PIP, follow these steps:

Upgrade PIP in Python.
  1. Run the Upgrade Command: Type the following command in the Command Prompt: python -m pip install --upgrade pip
  2. Check the Status: If your PIP version is up to date, you’ll see a message that says “requirement already satisfied.” If it’s not, PIP will be updated automatically.
Confirming PIP is on the latest version.

Adding Python and PIP to PATH

If you’re facing issues with Python or PIP commands not being recognized, you may need to add them to your system’s PATH. Here’s how to do it:

Search for and open 'Edit the system environment variables' settings.
  1. Open Environment Variables: Search for “Edit the system environment variables” in the Windows search bar and click on it.
  2. Access the PATH Variable: In the System Properties window, click on “Environment Variables.” Under “System Variables,” select “Path” and click “Edit.”
  3. Find the Python Installation Folder: Navigate to where Python is installed on your system. If you followed my guide, it should be on your C: drive in a folder named “Python.”
  4. Add Python to PATH: Copy the path to your Python folder, then click “New” in the PATH editor and paste it.
  5. Add the Scripts Folder to PATH: Inside the Python folder, there’s also a “Scripts” folder. Copy its path and add it to the PATH variables as well.
  6. Apply Changes: Click OK to save and apply these changes.
Add Python to PATH in 'Edit environment variable' window.

After completing these steps, your system should now recognize Python and PIP commands.

Conclusion

By following this guide, you should now have PIP installed and fully functional on your Windows 10 or 11 system. Whether you installed it during Python’s setup or added it manually, verifying the installation and keeping it updated is crucial for managing Python packages effectively. Don’t forget to add Python and PIP to your PATH to avoid any recognition issues.


FAQs

How do I know if PIP is installed correctly?

You can verify the installation by running the command pip help in the Command Prompt. If PIP is installed, you’ll see a list of PIP commands.

What should I do if PIP is not recognized?

If you get a “PIP is not recognized” error, it means PIP wasn’t installed correctly. You can install it manually using the ensurepip command.

How do I update PIP to the latest version?

To update PIP, run the command python -m pip install --upgrade pip in your Command Prompt.

Why do I need to add Python and PIP to the system path?

Adding Python and PIP to the system path ensures that you can run Python and PIP commands from any directory in the Command Prompt without having to navigate to their installation folder.

Where can I find my Python installation folder?

If you followed my Python installation guide, Python should be installed in the C: drive under a folder called “Python.” You can locate it via File Explorer.

Similar Posts

Leave a Reply

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