The Wayback Machine - https://web.archive.org/web/20240823060833/https://www.geeksforgeeks.org/how-install-setuptools-for-python-on-linux/
Open In App

How install Setuptools for Python on Linux?

Last Updated : 07 Feb, 2022
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

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 Python
  • Metadata from the distribution package
  • Hooks for testing
  • Installation of the project
  • Platform-specific information
  • Support for Python3

In this article, we will learn how to install Setuptools for Python on Linux.

Installing Setuptools on Linux 

Method 1: Using pip to install Setuptools Package

Follow the below steps to install the Setuptools package on Linux using pip:

Step 1: Install the current version of Python3 in Linux.

Step 2: Check if pip3 and python3 are correctly installed in your system using the following command:

python3 --version
pip3 --version

Checking-pip3-and-python3

Step 3: Upgrade pip3 to avoid errors occurring during the installation process.

pip3 install --upgrade pip

Upgrading-pip3

Step 4: Enter the following command to install Setuptools using pip3.

pip3 install setuptools

Installing-Setuptools-package

Method 2: Using setup.py to install Setuptools

Follow the below steps to install the Setuptools package on Linux using the setup.py file:

Step 1: Download the latest source package of Setuptools for Python3 from the website.

curl https://files.pythonhosted.org/packages/69/77/aee1ecacea4d0db740046ce1785e81d16c4b1755af50eceac4ca1a1f8bfd/setuptools-60.5.0.tar.gz > setuptools-60.5.0.tar.gz

Downloading-source-package-for-Setuptools

Step 2: Extract the downloaded setuptools package using the following command:

tar -xzvf setuptools-60.5.0.tar.gz

Extracting-the-package

Step 3: Go to the setuptools-60.5.0 folder and enter the following command to install the package.

cd setuptools-60.5.0
python3 setup.py install

Installing-Setuptools-using-the-setup.py

Verifying Setuptools installation on Linux 

Use the following import in your Python terminal to verify if the Setuptools installation has been done properly or not:

import setuptools

Verifying-Setuptools-installation

If we do not get any error while importing the package then is not installed properly.



Similar Reads

How to set up Setuptools for Python on Windows?
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 definitionsIt includes distribution package metadataIt includes test hooksIt includes project installationIt also includes
2 min read
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 testingInstallation of the projectPlatform-specific
2 min read
Differences between distribute, distutils, setuptools in Python
Overall, distutils is the original package management system for Python, and it is included in the standard library. setuptools is a third-party package that builds on top of distutils and provides additional features and functionality. distribute was a fork of setuptools that has since been merged back into setuptools, and distutils2 was a fork of
6 min read
How to Download and Install Python Latest Version on Linux?
Python is a widely-used general-purpose, high-level programming language. This article will serve as a complete tutorial on How to download and install Python latest version on Linux Operating Systems. On every Linux system including following OS, Ubuntu Linux Mint Debian openSUSE CentOS Fedora and my favourite one, Arch Linux. You will find Python
3 min read
How to Install Python Pycharm on Linux?
Prerequisite: Python Language Introduction Python is a widely-used general-purpose, high-level programming language. It was initially designed by Guido van Rossum in 1991 and developed by Python Software Foundation. It was mainly developed for emphasis on code readability, and its syntax allows programmers to express concepts in fewer lines of code
2 min read
How to Install OpenCV for Python in Linux?
Prerequisite: Python Language Introduction OpenCV is the huge open-source library for computer vision, machine learning, and image processing and now it plays a major role in real-time operation which is very important in today’s systems. By using it, one can process images and videos to identify objects, faces, or even the handwriting of a human.
2 min read
How to Install Python-USPP on Linux?
Python-USPP is a multi-platform Python library that allows communication between Python programs and USPP devices. This library is written in Python itself. It supports Windows, Linux, and MacOS. In this article, we will learn how to install this library in the Linux operating system. Python USPP installation on Linux The python uspp has been devel
3 min read
How to Install Jmespath in Python in Linux?
Jmespath is known as the JSON query language for Python. It is used to find or extract the needed data from the JSON document or dictionary very quickly. It is also available in other languages also. In this article, we will be looking at the stepwise procedure to install the Jmespath for Python in Linux Operating System. Requirements: Python3Pytho
2 min read
How to Install Numdifftools in Python on Linux?
Numdifftools is a Python-based toolkit that solves numerical differentiation issues in one or more variables automatically. To produce the most accurate outcome, finite differences are exploited adaptively in conjunction with a Richardson extrapolation mechanism. This library is cross-platformed, so it can work with Windows, Linux, and even with ma
2 min read
Python - Install Paramiko on Windows and Linux
The high-level python API starts with the creation of a secure connection object. To have more direct control and pass a socket to transport to start remote access. As a client, it's authenticating using a user credential or private key, and checking the server’s host key. Paramiko is a Python library that makes a connection with a remote device th
1 min read
How to Install python-nmap Library on Linux?
Python-Nmap is a network mapper that is exceptionally vital in handling security auditing and discovering the network. It exists as an open-source project; thus it is available for free. All the core operating systems support Python-Nmap. However, the binary packages are only available for Windows, Linux, and Mac OS X. Nmap is essential in port sca
5 min read
How to Install xlrd in Python on Linux?
In this article, we will learn how to install xlrd in Python on Linux. The xlrd is a library for reading data and formatting information from Excel files in the historical .xls format. Installing xlrd in Python on Linux:Method 1: Using pip to install xlrd Package Follow the below steps to install the xlrd package on Linux using pip: Step 1: Install
2 min read
How to Install Python-pickle package on Linux?
Python pickle package is used for serializing and de-serializing a Python object structure. Any object in Python can be pickled so that it can be stored on the local disk. What pickle does is that it “serializes” the object first before writing it to a file. Pickling is a way to transform a python object (list, dict, etc.). So, in this article, we
2 min read
How to Install Python docutils on Linux?
Docutils is an open-source text processing system. It is written in Python language. It is used to process simple text or plaintext documents into some useful formats like LaTex, HTML, OpenDocument, XML, etc. It is easy to use and easy to read. It is available for operating systems like, Windows, macOS, Linux, etc., and is supported by Python2 and
2 min read
How to Install Packages in Python on Linux?
To install a package in python, we use pip. The pip is a python package manager. In this tutorial, we will be discussing how we can install packages in python on a Linux system. To install packages in python on Linux, we must have python and pip installed on our Linux machine. As python comes preinstalled with the Linux system, we may have to insta
2 min read
How to Install Astropy Python Library on Linux?
Astropy is an open-source library written purely in Python, specifically designed for use in astronomy and astrophysics. Anyone can develop astronomy software with Astropy Astronomy Tools. Astropy library is a cross-platform library for various operating systems such as Windows, Linux, and macOS. In this article, we will see an easy way to install
2 min read
How to Install SQLAlchemy in Python on Linux?
SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that is used as flexible database access using SQL. In this article, we will look into the process of installing SQLAlchemy on a windows machine. Pre-requisites: The only thing that you need for installing Numpy on Windows are: PythonPIP or Conda (Depending upon the user preference)I
2 min read
How to Install cx_oracle in Python on Linux?
The cx_oracle package is used to connect with the Oracle database using python. In this, article, we will look into the process of installing the cx_oracle package on Linux. Pre-requisites: The only thing that you need for installing Numpy on Windows are: PythonPIP or Conda (Depending upon the user preference)Installing cx_oracle Package on Linux u
2 min read
How to Install Scipy In Python on Linux?
In this article, we are going to see how to install Scipy in Python on Linux, SciPy is a python library that is useful in solving many mathematical equations and algorithms, it is a free and open-source Python library built on top of the popular NumPy library. To install Scipy on Linux: There are generally two easy methods using which we can instal
2 min read
How to Install Face Recognition in Python on Linux?
In this article, we will learn how to install Face Recognition in Python on Linux. This package is used to recognize and manipulate faces from Python or from the command line with the world’s simplest face recognition library. Installing Face Recognition Package on Linux:Method 1: Using pip to install Face Recognition Package Follow the below steps
2 min read
How to Install midi, midi_maniulation for Python on Linux?
In this article, we are going to see how to install midi Python on Linux. MIDI is an acronym for Musical Instrument Digital Interface. MIDI is a way to connect devices that make and control sounds. And there is a python framework for this midi manipulation. Using this python framework, we can read MIDI files from disk, build new MIDI streams, proce
2 min read
How to Install Gekko In Python on Linux?
In this article, we will learn how to install Gekko in Python on Linux. GEKKO is a Python package for machine learning and optimization of mixed-integer and differential-algebraic equations. It is coupled with large-scale solvers for linear, quadratic, nonlinear, and mixed-integer programming (LP, QP, NLP, MILP, MINLP). Modes of operation include p
2 min read
How to Install Nose 2 in Python on Linux?
Nose 2 is a successor of the Nose package. It is used for testing Python applications. It provides different types of methods, modules, classes, test case levels, etc. It also provides built-in plugins which fulfill the specific need of the developer like tests coverage, profiling, etc. In this article, we will look into the steps of installing the
2 min read
How to Install Python-VideoCapture on Linux?
Python-VideoCapture is a Python library that provides easy access to video-capturing devices (such as webcams) and video files using the OpenCV library. It allows you to capture and process video streams in real-time, making it useful for a wide range of computer vision applications such as motion detection, object tracking, and video analysis. Pyt
3 min read
How to Install python-kinterbasdb on Linux?
In this article, we will be looking at the stepwise procedure to install the python-kinterbasdb for Python in Linux. KInterbasDB is a Python DB API 2.0 module for the relational databases Firebird and Interbase. It also exposes most of the native client API of the database engine, including two-phase commit, server-side events, and an administrativ
2 min read
How to Install MySQLdb module for Python in Linux?
In this article, we are discussing how to connect to the MySQL database module for python in Linux. MySQLdb is an interface for connecting to a MySQL database server from Python. It implements the Python Database API v2.0 and is built on top of the MySQL C API. Installing MySQLdb module for Python on Linux: Follow the below steps to install Python
2 min read
How to Install Pyglet in Python on Linux?
The pyglet is a Python library. It is a cross-platform windowing and multimedia library and is planned for developing games and other visually-rich applications like GUI applications and many more. It has an active developer and user community so that users can easily solve issues. It also supports user interface event handling, loading images, and
2 min read
How to Install glob in Python on Linux?
The Python Glob module is like a regex matching function that looks for files matching a specified pattern according to the rules initialized by the Unix shell. It is also supported by Linux systems also. In this article, we will look into how to install the glob module on Linux Operating System. Requirements: Python3Python3-pipInstalling Python-Gl
1 min read
How to Install Python sympy on Linux?
Sympy is a Python library that is used to perform symbolic mathematics operations. It is a full-featured algebra system that keeps the code as simple as possible for more simplicity and efficiency. Sympy library depends on some other Python libraries like mpmath which is a core python library to perform floating-point operations. It supported Pytho
2 min read
How to Install Python-Pymediainfo Module on Linux?
Pymediainfo is a Python package that is used to wrap around the MediaInfo library. It works on various operating systems like Windows, Linux, and macOS. Along with this, it has support for various versions of Python like Python3.6, 3.7, 3.8, etc. In this article, we will look into the process of installing the Pymediainfo Package on the Linux Opera
2 min read
Practice Tags :
three90RightbarBannerImg