GalliumOS에서 pip를 사용하여 Kivy를 설치하는 중 오류가 발생했습니다.

GalliumOS에서 pip를 사용하여 Kivy를 설치하는 중 오류가 발생했습니다.

GalliumOS를 실행하는 노트북에 Kivy를 설치하려고 합니다.

pip install kivy

그것은 나에게 이 모든 것을 제공합니다. 저는 Linux와 Python을 처음 접했기 때문에 이것이 실제로 무엇을 의미하는지 전혀 모릅니다.

Collecting kivy
Using cached Kivy-1.10.0.tar.gz
Complete output from command python setup.py egg_info:
Using distutils

Detected Cython version 0.23.4
Using this graphics system: OpenGL
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)

Package gstreamer-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-1.0' found


WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)

Package sdl2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sdl2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sdl2' found
Package SDL2_ttf was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL2_ttf.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL2_ttf' found
Package SDL2_image was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL2_image.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL2_image' found
Package SDL2_mixer was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL2_mixer.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL2_mixer' found


 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "/tmp/pip-build-4Vxs2J/kivy/setup.py", line 934, in <module>
     version=get_version(),
   File "/tmp/pip-build-4Vxs2J/kivy/setup.py", line 47, in get_version
     ['git', 'rev-parse', 'HEAD']
   File "/usr/lib/python2.7/subprocess.py", line 567, in check_output
     process = Popen(stdout=PIPE, *popenargs, **kwargs)
   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
     errread, errwrite)
   File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
     raise child_exception
 OSError: [Errno 2] No such file or directory

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4Vxs2J/kivy/

제가 하려는 일은 Kivy를 설치하는 것 뿐입니다. 나는 과거에 파이게임을 조금 사용했기 때문에 pip를 설치했습니다.

이 문제를 쉽게 해결할 수 있는 방법이 있나요? 나는 파일을 파헤치는 데 별로 관심이 없지만 필요한 경우 이것이 작동하도록 할 것입니다.

Python 2.7과 3.5가 모두 설치되어 있습니다.

답변1

패키지 없음 {gstreamer-1.0.pc, sdl2.pc, SDL2_ttf.pc, SDL2_image.pc, SDL2_mixer.pc}

/usr/lib/pkgconfig/[files].pc.

sudo apt-get install apt-fileapt-file search [file.pc]: 그런 다음 [패키지] 목록을 표시하는 데 사용할 수 있습니다.-devKivy에 필요합니다. (아마도 libgstreamer0.10-dev, libsdl2-dev 등과 비슷할 것입니다.)

관련 정보