The question is on the title XD How do I Install Kivy for python 3.4 on my raspberry? Is that possible? I tried using the https://kivy.org/docs/installation/installation-rpi.html guide but thats only for python 2 users.
I had the same question, and raised a similar question ( Installing Kivy on Raspberry Pi 3 and making it work with Python 3.4 ); I think I've found the answer ( https://raspberrypi.stackexchange.com/a/66192/65991 ), so I'll try sharing it here as well:
EDIT : this MAY BREAK other software dependent on Python2, so please beware.
EDIT2: step 4 onwards should alleviate the possible damage from the temporary switch.
I think I've managed to find a solution for this:
Referring to this page, set default Python to 3.4 (per-user or system-wide, according to your needs):
How to change from default to alternative Python version on Debian Linux https://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux
At this point,
python --versionshould give you
Follow instructions on the regular Kivy Install Page:
User’s Guide » Installation on Raspberry Pi
Test run a python script with Kivy use, using the
pythoncommand, and see if the log shows the likes of
[INFO ] [Kivy ] v1.9.2.dev0, git-388651a, 20170423 [INFO ] [Python ] v3.4.2 (default, Oct 19 2014, 13:31:11)
If you have changed the system-wide default Python, then do the following as well, to minimize any damage to other applications:
Referring to the page in step 1, run
# update-alternatives --config python
and select the python2.7 path as your default python.
python --versiongives you
Python 2.7.9and that
python3 --versiongives you
Python 3.4.2at this point.
Test run the script in step 3, but using
python3instead, and check that it works as in step 3.
You can get a fresh raspberry pi image with kivy preinstalled at http://kivypie.mitako.eu/kivy-download.html. It really saved me tons of effort and errors. Note: read the description under the download. It may state some useful info.