输入 pip 命令, 例如: pip install {模块} 或 pip help --> pip install pygame
Looking in indexes: https://pypi.org/simple/, https://mirrors.bfsu.edu.cn/pypi/web/simple, https://mirrors.aliyun.com/pypi/simple, http://pypi3.qpython.org/simple, https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pygame
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/72/49/bd2fcbadb6a55bb24284bad4f530189401c99ffc234d51ba54756a776eb2/pygame-2.6.0.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [56 lines of output]
Skipping Cython compilation
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using UNIX configuration...
/data/data/org.qpython.qpy/files/bin/sh: dpkg-architecture: not found
/data/data/org.qpython.qpy/files/bin/sh: gcc: not found
/data/data/org.qpython.qpy/files/bin/sh: gcc: not found
/data/data/org.qpython.qpy/files/bin/sh: sdl2-config: not found
/data/data/org.qpython.qpy/files/bin/sh: sdl2-config: not found
/data/data/org.qpython.qpy/files/bin/sh: sdl2-config: not found
/data/data/org.qpython.qpy/files/bin/sh: pkg-config: not found
/data/data/org.qpython.qpy/files/bin/sh: pkg-config: not found
/data/data/org.qpython.qpy/files/bin/sh: pkg-config: not found
/data/data/org.qpython.qpy/files/bin/sh: freetype-config: not found
/data/data/org.qpython.qpy/files/bin/sh: freetype-config: not found
/data/data/org.qpython.qpy/files/bin/sh: freetype-config: not found
Hunting dependencies...
WARNING: "sdl2-config" failed!
WARNING: "pkg-config freetype2" failed!
WARNING: "freetype-config" failed!
---
For help with compilation see:
https://www.pygame.org/wiki/Compilation
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
Traceback (most recent call last):
File "/data/user/0/org.qpython.qpy/files/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/data/user/0/org.qpython.qpy/files/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/org.qpython.qpy/files/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/storage/emulated/0/Android/data/org.qpython.qpy/files/cache/pip-build-env-t4mkngc1/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/emulated/0/Android/data/org.qpython.qpy/files/cache/pip-build-env-t4mkngc1/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "/storage/emulated/0/Android/data/org.qpython.qpy/files/cache/pip-build-env-t4mkngc1/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 503, in run_setup
super().run_setup(setup_script=setup_script)
File "/storage/emulated/0/Android/data/org.qpython.qpy/files/cache/pip-build-env-t4mkngc1/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 318, in run_setup
exec(code, locals())
File "<string>", line 426, in <module>
File "/storage/emulated/0/Android/data/org.qpython.qpy/files/cache/pip-install-5dow98a7/pygame_70f69737b2244e3c98033298dbbf488b/buildconfig/config.py", line 234, in main
deps = CFG.main(**kwds, auto_config=auto)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/emulated/0/Android/data/org.qpython.qpy/files/cache/pip-install-5dow98a7/pygame_70f69737b2244e3c98033298dbbf488b/buildconfig/config_unix.py", line 245, in main
raise RuntimeError('Unable to run "sdl-config". Please make sure a development version of SDL is installed.')
RuntimeError: Unable to run "sdl-config". Please make sure a development version of SDL is installed.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[notice] A new release of pip is available: 24.1.2 -> 24.2
[notice] To update, run: pip install --upgrade pip
-->
这是什么情况?