To install pip on Windows, follow these steps:
Method 1: Install Python (Includes pip)
- Download Python:
- Visit python.org/downloads and download the latest Windows installer.
- Run the installer.
- Check “Add Python to PATH”:
- During installation, check the box “Add Python to PATH” at the bottom of the setup window.
- Click “Install Now”.
- Verify Python and pip:
- Open Command Prompt (press Win + R, typecmd, and hit Enter).
- Check Python:
python --version- Check pip:
pip --versionMethod 2: Install pip Manually
If Python is already installed but pip is missing:
- Download get-pip.py:
- Visit bootstrap.pypa.io/get-pip.py and save the file to your desktop.
- Run get-pip.py:
- Open Command Prompt.
- Navigate to the desktop and run:
cd Desktop python get-pip.py- Verify pip:
   pip --versionTroubleshooting
- “Python not recognized”:
- Reinstall Python and ensure “Add Python to PATH” is checked.
- Permission Errors:
- Run Command Prompt as Administrator (right-click → “Run as administrator”).
- Multiple Python Versions:
- Use py -3 -m pipinstead ofpipto specify Python 3:
py -3 -m pip --versionUpgrade pip
After installation, update pip to the latest version:
python -m pip install --upgrade pipKey Notes
- Python ≥3.4 includes pipby default.
- Use pip install <package>to install Python packages.