pyperclipを実行する際に次のようなエラーとなることがあります。
raise PyperclipException(EXCEPT_MSG)
pyperclip.PyperclipException:
Pyperclip could not find a copy/paste mechanism for your system.
For more information, please visit https://pyperclip.readthedocs.io/en/latest/introduction.html#not-implemented-error
このエラーはLinux環境で起きるようです。これは次のコマンドを実行すれば解消できます。
1 2 |
sudo apt install xsel sudo apt install xclip |