How to Install pyperclip in Python on Linux?
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
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
Step 3: Install the pyperclip package with the help of the following command.
sudo pip3 install pyperclip
or
sudo apt-get install python3-pyperclip
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.
Last Updated :
31 Jan, 2022
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...