我试图在带有 jupyter-notebook 的 AWS EC2 Ubuntu18.04 上使用名为 pyperclip 的 python 库。当我导入 pyperclip 并测试它的 copy() 函数是否正常工作时,
import pyperclip
pyperclip.copy(2)
我不断收到此错误。
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
我已经搜索了几天并安装了所有似乎需要的东西。(xclip、xsel、pygi 和 PyQt5) 但它仍然不起作用。
有谁知道如何处理这个???