我已阅读引用此问题的所有其他问题并尝试了解决方案,但似乎无法pyperclip
在 Mu 中工作。
当我尝试运行时:
>import pyperclip
>pyperclip.copy('Hello, world')
>pyperclip.paste()
我收到以下错误:
Traceback (most recent call last):
File "/home/andy/.local/share/mu/mu_venv-38-20210813-134953/lib/python3.8/site-packages/qtpy/__init__.py", line 204, in <module>
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/andy/mu_code/.py", line 3, in <module>
pyperclip.copy('hello')
File "/home/andy/.local/share/mu/mu_venv-38-20210813-134953/lib/python3.8/site-packages/pyperclip/__init__.py", line 658, in lazy_load_stub_copy
copy, paste = determine_clipboard()
File "/home/andy/.local/share/mu/mu_venv-38-20210813-134953/lib/python3.8/site-packages/pyperclip/__init__.py", line 582, in determine_clipboard
import qtpy # check if qtpy is installed
File "/home/andy/.local/share/mu/mu_venv-38-20210813-134953/lib/python3.8/site-packages/qtpy/__init__.py", line 210, in <module>
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found