Learning Python installation and testing of notes --Kivy

First, install

https://kivy.org/#home

 

https://kivy.org/#support 

  https://kivy.org/doc/stable/gettingstarted/intro.html

https://kivy.org/#download

https://kivy.org/doc/stable/installation/installation-windows.html

NOTE: The update pip experience problems, refer to: https://blog.csdn.net/tscaxx/article/details/104253948

 

python -m pip install kivy==1.11.1

dos window execute the command 

 

 The installation is complete

 

Second, the test

https://kivy.org/doc/stable/guide/basic.html

import kivy
kivy.require('1.0.6') # replace with your current kivy version !

from kivy.app import App
from kivy.uix.label import Label


class MyApp(App):

    def build(self):
        return Label(text='Hello world')


if __name__ == '__main__':
    MyApp().run()

Note: If errors are reported, refer to:

ImportError: DLL load failed: The specified module could not be found

https://www.cnblogs.com/cofear/p/10799243.html

result:

Published 80 original articles · won praise 4 · views 10000 +

Guess you like

Origin blog.csdn.net/tscaxx/article/details/104253158