xclip 和 xsel - FileNotFoundError: [Errno 2]

Sna*_*ron 2 python-3.x kivy xclip ubuntu-20.04

我有 kivy 1.10.1,python 3.8.2,我在 Ubuntu20.04 上编码。当我启动我的小程序时,我收到此错误:

    [CRITICAL] [Cutbuffer   ] Unable to find any valuable Cutbuffer provider.
xclip - FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: 'xclip'
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 55, in core_select_lib
    mod = __import__(name='{2}.{0}.{1}'.format(
  File "/usr/lib/python3/dist-packages/kivy/core/clipboard/clipboard_xclip.py", line 17, in <module>
    p = subprocess.Popen(['xclip', '-version'], stdout=subprocess.PIPE)
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)

xsel - FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: 'xsel'
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 55, in core_select_lib
    mod = __import__(name='{2}.{0}.{1}'.format(
  File "/usr/lib/python3/dist-packages/kivy/core/clipboard/clipboard_xsel.py", line 16, in <module>
    p = subprocess.Popen(['xsel'], stdout=subprocess.PIPE)
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
Run Code Online (Sandbox Code Playgroud)

请问我该如何解决?

Sna*_*ron 5

解决方案只是使用以下命令安装 xclip:

sudo apt-get install xclip
Run Code Online (Sandbox Code Playgroud)