Copying and Pasting Strings with the
pyperclip Module
• The pyperclip module has copy() and paste() functions that can send
text to and receive text from your computer’s clipboard.
• Sending the output of your program to the clipboard will make it easy,
for example, to paste it on an email, word processor or some other
software.
• This module is a third-party module and requires to be installed
before usage.
• From OS X Terminal, issue command “python3 -m pip3 install pyperclip”
• From Linux Terminal, issue “sudo apt-get install python3-pip”
• You may need additional installations to get it working in Linux.
• From Window command line interface, issue “py –m pip install pyperclip”
14