Unable To Install Kivy On Macos10.15 Using Pip
So I have been using Tkinter up until now to build my GUI's for Python Projects. I want more functionality so - along comes Kivy. I am running MacOS10.15.3. I have Python 3.8.1 i
Solution 1:
You can download latest kivy snapshot wheels here:
https://kivy.org/downloads/ci/osx/kivy/
(cp38 in filename indicates it's meant to be used with Python3.8)
and then just run
pip install [path to wheel file]
Solution 2:
$ brew uninstall python@3.8
When I follow this instruction on the Kivy download site:
$ brew install pkg-config sdl2 sdl2_image sdl2_ttf sdl2_mixer gstreamer
For some reason it reinstalls Python@3.8. So, using homebrew, I uninstalled Python@3.8, uninstalled the sdl2 packages, and uninstalled Cython.
Then I was able to run the code below to get it to work properly:
$ brew install python@3.7$ python3 -m pip install Cython --user
$ python3 -m pip install kivy --user
This solved my problem. Hope this helps someone.
Solution 3:
To fix this - I removed Python 3.8 from my Mac and installed the latest version of Python 3.7 in its place.
I then run the commands listed on Kivy Install instructions for using Homebrew which are:
$ brew install pkg-config sdl2 sdl2_image sdl2_ttf sdl2_mixer gstreamer
$ pip install Cython==0.29.10$ pip install kivy
Solution 4:
Run these 2 commands in terminal:
rm -rf $(brew --repo homebrew/core)
brew tap homebrew/core
Post a Comment for "Unable To Install Kivy On Macos10.15 Using Pip"