Я устанавливаю Kivy на raspbian buster с python 2.7. Я следую инструкциям здесь https://kivy.org/doc/stable/installation/installation-rpi.html. Шаги 1 и 2 прошли нормально, а шаг 3 возвращает эту ошибку. Есть ли способ, которым я могу решить это?
pi@raspberrypi:~ $ python -m pip install --user https://github.com/kivy/kivy/archive/master.zip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting https://github.com/kivy/kivy/archive/master.zip
Downloading https://github.com/kivy/kivy/archive/master.zip
| 30.0MB 9.4MB/s
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-ehKxJq/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-ehKxJq/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-ehKxJq/pip-egg-info
cwd: /tmp/pip-req-build-ehKxJq/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-ehKxJq/setup.py", line 1024
def glob_paths(*patterns, excludes=('.pyc', )):
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.