Не могу установить kivy на PopOS и получить код ошибки 1 - PullRequest
0 голосов
/ 02 августа 2020

Я пытаюсь установить kivy на PopOS (это linux дистрибутив) и получаю эту ошибку

 ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tluj5cw5/kivy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tluj5cw5/kivy/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-install-tluj5cw5/kivy/pip-egg-info
         cwd: /tmp/pip-install-tluj5cw5/kivy/
    Complete output (672 lines):
    fatal: not a git repository (or any of the parent directories): .git
    WARNING: Skipping page https://github.com/kivy-garden/garden/archive/master.zip because the HEAD request got Content-Type: application/zip.The only supported Content-Type is text/html
      ERROR: Command errored out with exit status 1:
       command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-b_3o000g/cython/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-b_3o000g/cython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-gjkvc12l
           cwd: /tmp/pip-wheel-b_3o000g/cython/

1 Ответ

0 голосов
/ 13 августа 2020

Kivy пока не поддерживает python 3.8, используйте вместо него 3.7.

sudo dnf install python37
python3.7 -m ensurepip --default-pip --user
python3.7 -m pip install kivy --user

Другой поток: Множественные ошибки при установке Kivy

С уважением ,

...