How to Install Python-pyautogui package on Linux?
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
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
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
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
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.
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses
are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!