The error message log is below:
Collecting pygame
Using cached pygame-2.1.2.tar.gz (10.1 MB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-v1q2ib17/pygame/setup.py’"’"’; file=’"’"’/tmp/pip-install-v1q2ib17/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-install-v1q2ib17/pygame/pip-egg-info
cwd: /tmp/pip-install-v1q2ib17/pygame/
Complete output (29 lines):
WARNING, No “Setup” File Exists, Running “buildconfig/config.py”
Using UNIX configuration…
/bin/sh: 1: sdl2-config: not found
/bin/sh: 1: sdl2-config: not found
/bin/sh: 1: sdl2-config: not found
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-install-v1q2ib17/pygame/setup.py”, line 359, in
buildconfig.config.main(AUTO_CONFIG)
File “/tmp/pip-install-v1q2ib17/pygame/buildconfig/config.py”, line 225, in main
deps = CFG.main(**kwds)
File “/tmp/pip-install-v1q2ib17/pygame/buildconfig/config_unix.py”, line 188, in main
DependencyProg(‘SDL’, ‘SDL_CONFIG’, ‘sdl2-config’, ‘2.0’, [‘sdl’]),
File “/tmp/pip-install-v1q2ib17/pygame/buildconfig/config_unix.py”, line 39, in init
self.ver = config[0].strip()
IndexError: list index out of range
Hunting dependencies…
—
For help with compilation see:
Compilation - pygame wiki
To contribute to pygame development see:
Contribute - pygame wiki
—
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.