How can I use pyperclip on EC2?

116 Views Asked by At

When I try to run my program on EC2, I cannot use the pyperclip library

This is my code

import pyperclip

pyperclip.copy('Hello, World!')
text_copied = pyperclip.paste()

print(text_copied)

And Error

pyperclip.PyperclipException: 
    Pyperclip could not find a copy/paste mechanism for your system.
    For more information, please visit https://pyperclip.readthedocs.io/en/latest/index.html#not-implemented-error 

How can I use pyperclip on EC2?

I have no idea. Nobody help me?

I did [sudo yum install xclip] already.

I expect the reason of Linux Environment but I have no idea about details.

0

There are 0 best solutions below