Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
147 views
in Technique[技术] by (71.8m points)

python - How do I install Kivy on Mac OS?

I am really struggling to install Kivy on my Mac running on OS 11.1

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:

$ 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.

Any help would be much appreciated

question from:https://stackoverflow.com/questions/66068956/how-do-i-install-kivy-on-mac-os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...