pyperclip 模块引发错误消息
pyperclip module raising an error message
我在 ArchLinux 上使用 Python 3.4.0(没有 X11)作为 Vagrant box 中的访客。当 运行 我的脚本出现此错误消息时:
Pyperclip could not find a copy/paste mechanism for your system
根据这个 link,我已经安装了 xsel 和 xclip 包,但我无法安装 gtk 或 PyQt4 模块,因为我收到了另一条错误消息:
Could not find a version that satisfies the requirement PyQt4 (from
versions: )
根据这个post,我应该安装python3-pyqt4包,但是pacman显示的更接近的包是 python-pyqt5 并且它需要安装许多包含 X11 包的包。这是必要的吗?我希望尽可能保留我的发行版灯。
有什么解决办法吗?提前致谢。
这个方法帮我解决了。
pip install QtPy
您也可以参考此主题以获得更多帮助
https://pyperclip.readthedocs.io/en/latest/introduction.html#not-implemented-error
我在 ArchLinux 上使用 Python 3.4.0(没有 X11)作为 Vagrant box 中的访客。当 运行 我的脚本出现此错误消息时:
Pyperclip could not find a copy/paste mechanism for your system
根据这个 link,我已经安装了 xsel 和 xclip 包,但我无法安装 gtk 或 PyQt4 模块,因为我收到了另一条错误消息:
Could not find a version that satisfies the requirement PyQt4 (from versions: )
根据这个post,我应该安装python3-pyqt4包,但是pacman显示的更接近的包是 python-pyqt5 并且它需要安装许多包含 X11 包的包。这是必要的吗?我希望尽可能保留我的发行版灯。
有什么解决办法吗?提前致谢。
这个方法帮我解决了。
pip install QtPy
您也可以参考此主题以获得更多帮助 https://pyperclip.readthedocs.io/en/latest/introduction.html#not-implemented-error