0

当我尝试使用 pip3 在我的 jetson nano 上安装 pygame 时,我遇到了一个错误:

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 "<string>", line 1, in <module>
  File "/tmp/pip-build-z7kp5o0r/pygame/setup.py", line 318, in <module>
    buildconfig.config.main(AUTO_CONFIG)
  File "/tmp/pip-build-z7kp5o0r/pygame/buildconfig/config.py", line 221, in main
    deps = CFG.main(**kwds)
  File "/tmp/pip-build-z7kp5o0r/pygame/buildconfig/config_unix.py", line 194, in main
    DependencyProg('SDL', 'SDL_CONFIG', 'sdl2-config', '2.0', ['sdl']),
  File "/tmp/pip-build-z7kp5o0r/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:
    https://www.pygame.org/wiki/CompileUbuntu
To contribute to pygame development see:
    https://www.pygame.org/contribute.html
---


----------------------------------------

命令“python setup.py egg_info”在 /tmp/pip-build-z7kp5o0r/pygame/ 中失败,错误代码为 1

如果有人对此有什么要分享或评论的,请随时这样做。

4

0 回答 0