Skip to content
Related Articles

Related Articles

How to Install python3-xlib package on Linux?

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 24 Feb, 2022

The Python3-xlib Library is intended to be a fully functional X client library for Python programs. It is written entirely in Python language, indifference to earlier X libraries for Python (the ancient X extension and the newer plxlib) which were interfaces to the C Xlib. So, in this article, we will be installing the Python3-xlib package in Python on Linux operating system.

Installing python3-xlib package on Linux using PIP


To install the python3-xlib package in Linux we have to follow the below steps.

Step 1: The first step is to make your Linux OS ready with the Python3 environment. So in this below step, we are installing Python3 using apt manager.

sudo apt-get install python3


Step 2: To install any Python package we need a PIP manager which is an inbuilt module of Python to install packages. So below step describes the installation of the PIP manager using apt.

sudo apt install python3-pip


Step 3: Now, In this step, we are actually installing the xlib package by using the PIP manager. Just follow the below command to install the package.

sudo pip3 install python3-xlib 


Verifying python3-xlib package installation on Linux using PIP

After installing the package, the next important step is to verify the installation. So in this step, we are just retrieving the information of the installed package (xlib) with the below command on the terminal itself.

python3 -m pip show python3-xlib 

The below output will be displayed after successful installation of xlib package on your Linux machine.


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!