How to set up Setuptools for Python on Windows?
Last Updated :
23 Jul, 2025
Setuptools is a package development process library that is designed to make packaging Python projects easier by boosting the standard distutils (distribution utilities) library of Python.
- It includes Python package and module definitions
- It includes distribution package metadata
- It includes test hooks
- It includes project installation
- It also includes platform-specific details
- It supports Python3.
In this article, we will learn how to install Setuptools for Python on Windows.
Installing Setuptools on Windows
Method 1: Using pip to install Setuptools Package
Follow the below steps to install the Setuptools package on Windows using pip:
Step 1: Install the latest or current version of Python3 in Windows.
Step 2: Now check if pip and python are correctly installed in your system using the following commands.
python --version
pip --version
Step 3: Upgrade pip to the latest version to avoid errors during installation.
pip install --upgrade pip
Step 4: Enter the following command in the command prompt to install Setuptools using pip.
pip install setuptools
Method 2: Using setup.py to install Setuptools
Follow the below steps to install the Setuptools on Windows using the setup.py file:
Step 1: Download the latest source package of Setuptools for Python3 from here.
curl https://files.pythonhosted.org/packages/9b/be/13f54335c7dba713b0e97e11e7a41db3df4a85073d6c5a6e7f6468b22ee2/setuptools-60.2.0.tar.gz > setuptools-60.2.0.tar.gz
Step 2: Extract the downloaded package using the given command.
tar -xzvf setuptools-60.2.0.tar.gz
Step 3: Go to the setuptools-60.2.0 folder and enter the following command to install the package.
cd setuptools-60.2.0
python setup.py install
Verifying Setuptools installation on Windows
Make the following import in your Python terminal to verify if the installation of the Setuptools package has been done properly:
import setuptools
If there is any error while importing the module then the Setuptools package is not installed properly.
Similar Reads
How to set up Setuptools for Python on MacOS? Setuptools is a package development process library that extends the Python standard library distutils to make it easier to package Python projects (distribution utilities). It contains the following features: Package and module declarations in PythonMetadata from the distribution packageHooks for t
2 min read
How to Setup Sublime Text 3 for Python in Windows? Written by a Google engineer sublime text is a cross-platform IDE developed in C++ and Python. It has basic built-in support for Python. Sublime text is fast and you can customize this editor as per your need to create a full-fledged Python development environment. You can install packages such as d
2 min read
How to update Python on Windows? In this article, we are going to see how to update Python in the Windows system. For the sake of example, we will be upgrading from Python 3.6.8 to Python 3.9.6. Here, we will see how to upgrade the Python version.Upgrading Python on WindowsTo check the current version of Python on your system, use
3 min read
How to use CMD for Python in Windows 10 Want to run Python programs directly from the Command Prompt? This guide will walk you through how to run Python in CMD, configure the environment, and troubleshoot common issues. By mastering these steps, youâll streamline your development process and save time during testing.Steps to Use CMD for P
4 min read
How to Install PyQt for Python in Windows? In this article, we will be looking at the stepwise procedure to install the PyQt for python in Windows. PyQt is a Python binding of the cross-platform GUI toolkit Qt, implemented as a Python plug-in. PyQt is free software developed by the British firm Riverbank Computing. Features of PyQt: There ar
2 min read
How to setup Python, PyEnv & Poetry on Windows Setting up a robust Python development environment on Windows involves installing Python itself, managing multiple versions with PyEnv, and handling dependencies and project environments with Poetry. This guide will walk you through each step to get your system ready for efficient and organized Pyth
3 min read