小编Jam*_*utt的帖子

无法使用 pip 在 MacOS10.15 上安装 Kivy

所以到目前为止我一直在使用 Tkinter 来为 Python 项目构建我的 GUI。我想要更多的功能 - Kivy 随之而来。

  • 我正在运行 MacOS10.15.3。
  • 我安装了 Python 3.8.1 和 Cython 0.29.15。

按照他们的文档,找到here,我现在在这一步

pip install kivy
Run Code Online (Sandbox Code Playgroud)

然而,这只是输出以下内容:

ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/k9/4_rr59zs7055_wty99dd524w0000gn/T/pip-install-jukuvgg8/kivy/setup.py'"'"'; __file__='"'"'/private/var/folders/k9/4_rr59zs7055_wty99dd524w0000gn/T/pip-install-jukuvgg8/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 /private/var/folders/k9/4_rr59zs7055_wty99dd524w0000gn/T/pip-install-jukuvgg8/kivy/pip-egg-info
         cwd: /private/var/folders/k9/4_rr59zs7055_wty99dd524w0000gn/T/pip-install-jukuvgg8/kivy/
    Complete output (247 lines):
    fatal: not a git repository (or any of the parent directories): .git
    Using setuptools
    User distribution detected, avoid portable command.
    Using this graphics …
Run Code Online (Sandbox Code Playgroud)

python macos user-interface kivy macos-catalina

4
推荐指数
1
解决办法
1706
查看次数

标签 统计

kivy ×1

macos ×1

macos-catalina ×1

python ×1

user-interface ×1