Open In App

How to Install Python-pyautogui package on Linux?

Improve
Improve
Like Article
Like
Save
Share
Report

PyAutoGUI allows your Python programs to automate interactions with other apps by controlling the mouse and keyboard. The API was created with simplicity in mind. PyAutoGUI is a cross-platformed library that works on Windows, macOS, and Linux and runs on Python 2 and 3. We will install the PyAutoGUI package in Python on the Linux operating system in this article. 

Installing PyAutoGUI package on Linux using PIP

Requirements:

  1. Python3
  2. Python3-pip

To install the PyAutoGUI package in Linux follow the following steps:

Step 1: Setting up a Python environment on our Linux operating system. So to install Python3 in our Linux system we use the apt manager.

sudo apt-get install python3

Installing-Python3

Step 2: Installing the PIP manager in our Linux system. It is a Python package installation program that is used to install and manage Python packages. So to install PIP we use the following command on the terminal.

sudo apt install python3-pip

Installing-pip-manager

Step 3: Now using the PIP manager we are going to install the PyAutoGUI package. So for the installation run the following command on the terminal.

sudo pip3 install PyAutoGUI

Installing-PyAutoGUI

Verifying the installation of PyAutoGUI package on Linux using PIP

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

python3 -m pip show PyAutoGUI

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

Verifying-the-installation-of-PyAutoGUI-package


Last Updated : 07 Mar, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads