Installing Kivy and Python (system-wide, recommended)
(see also Linux Instructions)
These steps are recommended now since Kivy can work along with a standard python installation, as a "wheel" (package) delivered by "pip" (python package management system). You can safely ignore (skip) the color areas (untested future ready options), and the light ghosted areas (tips, such as doing the step the long way).
(These steps are required [instead of the official instructions] since as of Nov 2016 there is no sdl2 for Python 3.5, so Python 3.4 and a manually-downloaded wheel is required; also, because a weird Windows update is needed) |
Update Windows
for Windows 7, install Windows6.1-KB2999226-x86.msu
If you don't have Python Yet, get it here
or the long way: Download Python 3.4.4 [Go to the Python Releases for Windows page (or Go to python.org, Downloads, Windows) |
After you have Python:
Double-click the 64-bit Python 3.4 installer (or skip to 3.5 instructions)
Install for All users (this will change destination to C:\Python34
Click "Next"
Click 'x' by Add Python to Path and change it to "Entire Feature"
Click "Next"
Wait then click "Finish" when it is done.
(Windows 10) right-click Windows menu then "Command Prompt (Admin)"
type:
(if version 3 or higher is not shown, close Command Prompt and try uninstalling python and trying the steps above again, making sure you check environment variables option) Now you can follow the instructions to install the wheel as per https://kivy.org/docs/installation/installation-windows.html#install-win-dist (shown below): |
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
(if you get an error that says sdl2 cannot be found, it is not available for your version of Python yet. Try installing Python 3.4.4 as per the instructions above. This is due to "upstream" issues, aka someone outside of the Kivy project didn't include the package gstreamer, which Kivy uses, on pip for your version of python yet) Either way, install gstreamer wheel manually using the steps below, since the package is not available due to similar packaging issues: |
- Go to https://kivy.org/downloads/appveyor/deps/gstreamer/
- Or otherwise click on this download: kivy.deps.gstreamer-0.1.6-cp34-none-win_amd64.whl
(or 35 if your python version is 3.5) - Right-click Windows menu, "Command Prompt"
(not admin) then type or paste the command (all in one line):
copy "%USERPROFILE%\Downloads\kivy.deps.gstreamer-0.1.6-cp34-none-win_amd64.whl" C:\WINDOWS\Temp\
- Close that window
- Go to "Command Prompt (Admin)" then do:
cd C:\WINDOWS\Temp
python -m pip install kivy.deps.gstreamer-0.1.6-cp34-none-win_amd64.whl
python -m pip install kivy
[optional] Installing Kivy 1.9.0 with its own Python
[optional] Installing Kivy 1.8.0 for Python 3(includes link to Expert Multimedia installer script with additional script placing it in the SendTo menu of another user)
|