小编Mat*_*icz的帖子

无法让 pyperclip 在 python3 上使用复制和粘贴模块

眼镜:

  • Python3.5
  • 最新的Pyperclip
  • 安装了 xclip 和 python3-pyqt4
  • 使用 ssh(Putty) 使用最新的 Raspian Stretch Light 连接到无头树莓派 2 型号 B

Error: pyperclip.copy('Hello world!')
  File "/usr/local/lib/python3.5/dist-packages/pyperclip/__init__.py", line 612, in lazy_load_stub_copy
    return copy(text)
  File "/usr/local/lib/python3.5/dist-packages/pyperclip/__init__.py", line 297, in __call__
    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
Run Code Online (Sandbox Code Playgroud)

我还尝试卸载并重新安装模块和剪贴板程序。我搜索了 2 个小时寻找答案并使用了所有这些,但它们没有用。我承认我是个菜鸟,但对我来说做这件事不应该这么难。

python linux raspberry-pi

4
推荐指数
2
解决办法
5476
查看次数

标签 统计

linux ×1

python ×1

raspberry-pi ×1