Hallo zusammen.
Ich versuche bereits seit mehreren Tagen das Modul pygame über pip zu installieren. Jedoch schlägt dies immer wieder fehl. Zahlreiche Tipps aus diversen Google-Treffern waren leider bislang auch nicht zielführend. Hat hier jemand noch eine Idee?
VG Dennis
IST-Zustand:
- Rapberry Pi Zero (WH) mit dem Raspberry Pi OS Lite (32-bit) ohne Desktopumgebung
- Python 2.7.16
- Python 3.7.3
- pip 18.1 from /usr/lib/python2.7/dist-packages/pip (python 2.7)
- pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)
Ausgabe nach erfolglosem Versuch:
Code
dte@raspberrypi:~ $ sudo pip install pygame
[sudo] Passwort für dte:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pygame
Using cached https://files.pythonhosted.org/packages/c7/b8/06e02c7cca7aec915839927a9aa19f749ac17a3d2bb2610b945d2de0aa96/pygame-2.0.1.tar.gz
Complete output from command python setup.py egg_info:
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using UNIX configuration...
sh: 1: sdl2-config: not found
sh: 1: sdl2-config: not found
sh: 1: sdl2-config: not found
Hunting dependencies...
---
For help with compilation see:
https://www.pygame.org/wiki/CompileDebian
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ELc0Ao/pygame/setup.py", line 318, in <module>
buildconfig.config.main(AUTO_CONFIG)
File "buildconfig/config.py", line 221, in main
deps = CFG.main(**kwds)
File "buildconfig/config_unix.py", line 194, in main
DependencyProg('SDL', 'SDL_CONFIG', 'sdl2-config', '2.0', ['sdl']),
File "buildconfig/config_unix.py", line 39, in __init__
self.ver = config[0].strip()
IndexError: list index out of range
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-ELc0Ao/pygame/
dte@raspberrypi:~ $
Alles anzeigen