I am trying to install kivy on WSL-1 (ubuntu 18.04) using:
python3 -m pip install kivy
However, I run into the following error:
mp/pip-build-wzqslc5f/kivy/kivy/include -I/usr/include/python3.6m -c /tmp/pip-build-wzqslc5f/kivy/kivy/graphics/context.c -o build/temp.linux-x86_64-3.6/tmp/pip-build-wzqslc5f/kivy/kivy/graphics/context.o
In file included from /tmp/pip-build-wzqslc5f/kivy/kivy/graphics/context.c:599:0:
/tmp/pip-build-wzqslc5f/kivy/kivy/include/gl_redirect.h:72:13: fatal error: GL/gl.h: No such file or directory
# include <GL/gl.h>
^~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wzqslc5f/kivy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-23856ukx-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-wzqslc5f/kivy/
What should be done differently on WSL?