При попытке установить Pygame выходит ошибка. Как исправить?

Я программирую на телефоне и использую терминал Termux а редактор кода Acode

Вот ошибка:

Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [36 lines of output]

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

/data/data/com.termux/files/usr/bin/sh: 1: dpkg-architecture: not found
clang-16: error: unsupported option '-print-multiarch'
clang-16: error: no input files
/data/data/com.termux/files/usr/bin/sh: 1: sdl2-config: not found
/data/data/com.termux/files/usr/bin/sh: 1: sdl2-config: not found
/data/data/com.termux/files/usr/bin/sh: 1: sdl2-config: not found
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/data/data/com.termux/files/usr/tmp/pip-install-_pudntr_/pygame_0d9257b7121842b2bb237e76f1074cbf/setup.py", line 400, in
buildconfig.config.main(AUTO_CONFIG)
File "/data/data/com.termux/files/usr/tmp/pip-install-_pudntr_/pygame_0d9257b7121842b2bb237e76f1074cbf/buildconfig/config.py", line 231, in main
deps = CFG.main(**kwds, auto_config=auto)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-install-_pudntr_/pygame_0d9257b7121842b2bb237e76f1074cbf/buildconfig/config_unix.py", line 218, in main
DependencyProg('SDL', 'SDL_CONFIG', 'sdl2-config', '2.0', ['sdl']),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-install-_pudntr_/pygame_0d9257b7121842b2bb237e76f1074cbf/buildconfig/config_unix.py", line 43, in __init__
self.ver = config[0].strip()
~~~~~~^^^
IndexError: list index out of range

Hunting dependencies...

---
For help with compilation see:
https://www.pygame.org/wiki/Compilation
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
  • Вопрос задан
  • 176 просмотров
Пригласить эксперта
Ответы на вопрос 1
@WowDev
Программист
pygame нету на телефоне к сожалению, но в PyDroid3 pygame есть
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы