Open In App

How to Install pyperclip in Python on Linux?

Improve
Improve
Like Article
Like
Save
Share
Report

Pyperclip is a cross-platform Python module for copy and pasting, or we can say that it provides clipboard functionality. It was created to allow cross-platform copy-pasting in Python which was before missing. It is available for Python 2 and 3. In this article, we will look into the steps of installing the pyperclip on the Linux operating system.

Requirements:

Installing pyperclip package on Linux using PIP

To install the pyperclip package in Linux we have to follow the following steps:

Step 1: Install Python3 on Linux Machine using the following command in the terminal:

sudo apt-get install python3

Installing-Python3-on-Linux

Step 2: Now, install the pip module which is required to install and manage the packages in Python3. So use the following command:

sudo apt install python3-pip

Installing-the-pip-module

Step 3: Install the pyperclip package with the help of the following command.

sudo pip3 install pyperclip 

or

sudo apt-get install python3-pyperclip

Installing-the-pyperclip-package

Verifying pyperclip package installation on Linux using PIP

To verify if the pyperclip package has been successfully installed in your system run the below command in the terminal:

python3 -m pip show pyperclip 

You’ll get the following message if the installation is completed successfully.

Verifying-pyperclip-package-installation


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