Python + Kivy development on Windows

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.

Install Python for the time being

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.

pip update

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.

Then install Kivy

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.

sample

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

Python + Kivy development on Windows
Python on Windows
Install Python development environment on Windows 10
[Kivy] How to install Kivy on Windows [Python]
python basic on windows ②
Install python on windows
Create a Python virtual development environment on Windows
Run Openpose on Python (Windows)
Install watchdog on Windows + Python 3.3
Sphinx-autobuild (0.5.2) on Windows7, Python 3.5.1, Sphinx 1.3.5
Fastest Python installation on Windows
Build Python environment on Windows
Django environment development on Windows 10
Build python environment on windows
I ran python on windows
[Python] [Chainer] [Windows] Install Chainer on Windows
Use Python on Windows (PyCharm)
Create a comfortable Python 3 (Anaconda) development environment on windows
Build a GVim-based Python development environment on Windows 10 (1) Installation
Python environment construction memo on Windows 10
Prepare Python development environment on Ubuntu
Anaconda python environment construction on Windows 10
Install python2.7 on windows 32bit environment
Kivy + Python3 on OSX environment maintenance
Install xgboost (python version) on Windows
Install Python on Windows + pip + virtualenv
Install Pytorch on Blender 2.90 python on Windows
Integrate Modelica and Python on Windows
[Python3] Development environment construction << Windows edition >>
Installing Kivy-Designer on Windows10 64bit Python3.5
Python development environment construction on macOS
Mecab / Cabocha / KNP on Python + Windows
Python CGI file created on Windows
Getting started with Python 3.8 on Windows
Reproduce One-Touch Search on Python 3.7.3. (Windows 10)
Build a GVim-based Python development environment on Windows 10 (2) Basic settings
Notes for using OpenCV on Windows10 Python 3.8.3.
Run servo with Python on ESP32 (Windows)
twitter on python3
python windows environment
Python installation (Windows)
Virtualenv does not work on Python3.5 (Windows)
Creating a python virtual environment on Windows
Use without installing python 2.x on Windows
python on mac
Python on Windbg
Windows + gVim + Poetry python development environment construction
Create a Python development environment on Windows (Visual Studio Code remote WSL).
Install and run Python3.5 + NumPy + SciPy on Windows 10
Put MicroPython on Windows to run ESP32 on Python
(Windows) Causes and workarounds for UnicodeEncodeError on Python 3
Simply build a Python 3 execution environment on Windows
How to use Python Kivy ④ ~ Execution on Android ~
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Python development on Ubuntu on AWS EC2 (using JupyterLab)
Build a Python development environment on your Mac
Set up a Python development environment on Marvericks
[Python] How to install OpenCV on Anaconda [Windows]
[Note] Installing Python 3.6 + α on Windows and RHEL
Installing TensorFlow on Windows Easy for Python beginners
Build a Python development environment on Raspberry Pi