所以到目前为止我一直在使用 Tkinter 来为 Python 项目构建我的 GUI。我想要更多的功能 - Kivy 随之而来。
按照他们的文档,找到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)