在树莓派python 2.7上安装kivy时发生错误

时间:2019-10-28 05:06:45

标签: python python-2.7 kivy

我正在使用python 2.7在raspbian buster上安装Kivy。我正在按照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.

0 个答案:

没有答案