How to check / check kivy version?

This does not work:

$ kivy --version Python 2.7.6 

I have Kivy.app installed, and it also does not provide version information.

+5
source share
3 answers

The version is printed in the default kivy log file, or you can get it in python using import kivy; print(kivy.__version__) import kivy; print(kivy.__version__) .

+13
source

Here is the output of the log that shows the kivy version:

 $ kivy my_kivy_prog.py [INFO ] [Logger ] Record log in /Applications/Kivy.app/Contents/Resources/.kivy/logs/kivy_15-12-20_0.txt [INFO ] [Kivy ] v1.9.0 [INFO ] [Python ] v2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] [INFO ] [Factory ] 173 symbols loaded [INFO ] [Image ] Providers: img_tex, img_imageio, img_dds, img_gif, img_sdl2 (img_pil, img_ffpyplayer ignored) [INFO ] [Text ] Provider: sdl2 [INFO ] [OSC ] using <multiprocessing> for socket [INFO ] [Window ] Provider: sdl2 [INFO ] [GL ] OpenGL version <2.1 INTEL-10.4.47> [INFO ] [GL ] OpenGL vendor <Intel> [INFO ] [GL ] OpenGL renderer <Intel(R) Iris(TM) Graphics 6100> [INFO ] [GL ] OpenGL parsed version: 2, 1 [INFO ] [GL ] Shading version <1.20> [INFO ] [GL ] Texture max size <16384> [INFO ] [GL ] Texture max units <16> [INFO ] [Window ] auto add sdl2 input provider [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked [INFO ] [Base ] Start application main loop 

You can see both the kivy version and the python version.

+3
source

I know it's already late, but you can do $ kivy and import kivy . Then you can see the version of [INFO ][Kivy]v1.9.1-dev0 in the output.

+2
source

Source: https://habr.com/ru/post/1238789/


All Articles