小编Sna*_*ron的帖子

在ubuntu 20.04LTS上安装pygame的问题

我在 Ubuntu 20.04LTS 上,我尝试为学校项目安装 pygame(用于 python)。但是当我尝试这个时:

sudo pip3 install pygame
Run Code Online (Sandbox Code Playgroud)

我收到一个错误:

ERROR: Command errored out with exit status 1:
 command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-szdn6q_u/pygame/setup.py'"'"'; __file__='"'"'/tmp/pip-install-szdn6q_u/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-3fqnujta
     cwd: /tmp/pip-install-szdn6q_u/pygame/
Complete output (18 lines):


WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using UNIX configuration...


Hunting dependencies...
SDL     : found 1.2.15
FONT    : not found
IMAGE   : not found
MIXER   : not found
PNG     : found
JPEG    : found
SCRAP   : …
Run Code Online (Sandbox Code Playgroud)

python pygame python-3.x ubuntu-20.04

4
推荐指数
1
解决办法
3346
查看次数

xclip 和 xsel - FileNotFoundError: [Errno 2]

我有 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 …
Run Code Online (Sandbox Code Playgroud)

python-3.x kivy xclip ubuntu-20.04

2
推荐指数
1
解决办法
1093
查看次数

标签 统计

python-3.x ×2

ubuntu-20.04 ×2

kivy ×1

pygame ×1

python ×1

xclip ×1