简体   繁体   English

如何在 Mac OS 上安装 Kivy?

[英]How do I install Kivy on Mac OS?

I am really struggling to install Kivy on my Mac running on OS 11.1我真的很难在运行 OS 11.1 的 Mac 上安装 Kivy

I have been following the steps on the Kivy website, and here is the code I have been running and the error it has brought:我一直在按照 Kivy 网站上的步骤进行操作,这是我一直在运行的代码及其带来的错误:

$ python -m pip install kivy[base] kivy_examples

ERROR: Command errored out with exit status 1: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Users/ username /Library/Python/2.7/lib/python/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/8d/995357jn2y3_0znpn71tkxk80000gn/T/tmpgWNtOP Check the logs for full command output.错误:命令出错,退出状态为 1:/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Users/ username /Library/Python/2.7/lib/python /site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/8d/995357jn2y3_0znpn71tkxk80000gn/T/tmpgWNtOP 检查日志以获取完整命令 output。

Any help would be much appreciated任何帮助将非常感激

Try using尝试使用

$ python3 -m pip install kivy[base] kivy_examples

as just tying 'python' will default to Python 2.7 on your Mac instead of Python 3.因为在你的 Mac 上绑定“python”默认为 Python 2.7 而不是 Python 3。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM