pip kivy code example

Example 1: instal kivy

pip install kivy

Example 2: kivy python

from kivy.app import App
from kivy.uix.button import Button

class TestApp(App):
    def build(self):
        return Button(text='My Name is Vivek')

TestApp().run()

Example 3: python kivy

[Python 3.5 Windows]
python -m pip install kivy.deps.angle
python -m pip install kivy

Example 4: what version of python supports kivy

As of version 1.8. 0 Kivy supports both Python >= 2.7 and Python >= 3.4 with the same codebase. Python 3 is also now supported by python-for-android. However, be aware that while Kivy will run in Python 3.4+, our iOS build tools still require Python 2.7.

Tags:

Misc Example