python - pyperclip 模块引发错误消息

标签 python archlinux pyperclip

我在 ArchLinux 上使用 Python 3.4.0(没有 X11)作为 Vagrant box 中的访客。运行我的脚本时,我收到此错误消息:

Pyperclip could not find a copy/paste mechanism for your system

根据这个link ,我已经安装了 xselxclip 包,但是我无法安装 gtkPyQt4 模块,因为我明白了另一个错误信息:

Could not find a version that satisfies the requirement PyQt4 (from versions: )

根据这个post ,我应该安装 python3-pyqt4 包,但是 pacman 显示的包更接近 python-pyqt5 并且它需要安装许多包,包括 X11 的包。这是必要的吗?我希望尽可能保留我的发行版灯。

有什么解决办法吗?提前致谢。

最佳答案

这个方法帮我解决了。

pip 安装 QtPy

你也可以引用这个线程以获得更多帮助 https://pyperclip.readthedocs.io/en/latest/introduction.html#not-implemented-error

关于python - pyperclip 模块引发错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52845133/

相关文章:

cmake - 如何调查 imp.load_module 上的 python2 段错误

python - 如果脚本退出,Pyperclip 不会持续存在

python-evdev : reading axes X and Y of a gamepad simultaneously

python - 列表数组中超出范围的列表赋值索引

linux - 氮气--恢复到比例背景

c++ - 从服务器收到的 Wt FastCGI 不完整 header (0 字节)

python - 在 cron 中运行 headless selenium 时,出现错误 "Pyperclip could not find a copy/paste mechanism for your system"

Python 3.5 PIP 安装 pyperclip 错误 (Windows)

python - 将 Pandas 数据框的第一行转换为列名

python - 非阻塞 CherryPy 不接收任何东西