I wanted to make a smartphone app with Python + Kivy, As expected, coding on a smartphone was difficult, so I decided to put the environment in Windows. It was unexpectedly annoying, so I will leave a note so that I will not forget it.
Download the installer from Python HP. Ver.3 series has memories that the module I wanted to use in the past did not support it, so Download Ver.2.7 here.
I referred to Maisuto's commentary.
I will install Kivy using pip, so update pip first. Type the following command at the command prompt.
pip install --upgrade pip
I got an error if I didn't start the command prompt with administrator privileges.
Finally install Kivy.
pip install kivy
If you think this will work. .. .. Actually, there were almost no dependent modules.
It seems that it depends on pygame and Cython for the time being, so install these with pip.
pip install pygame cython
This still doesn't work, so refer to this page Install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew.
The sample is finally working.
When you install Kivy, there are samples under Python \ share \ kivy-samples, so you can see what you can do by taking a look. Especially Python \ share \ kivy-samples \ demo \ showcase is recommended because you can see most of the UI.
Recommended Posts