Erro na instalacao do Kivy no Pycharm
Não estou conseguindo instalar o Kivy no pycharm. Estou usando o mint 19.2 Mate, python 2.7 e pycharm 2019.2.
Instalei o kivy pelo gerenciador de aplicativos. Não deu erro.
Quanto tento instalar o Kivy pelo menu de configurações/Project Interpreter do pycharm ele dá erro de instalação conforme abaixo:
creating build/temp.linux-x86_64-2.7/tmp/pycharm-packaging
creating build/temp.linux-x86_64-2.7/tmp/pycharm-packaging/Kivy
creating build/temp.linux-x86_64-2.7/tmp/pycharm-packaging/Kivy/kivy
creating build/temp.linux-x86_64-2.7/tmp/pycharm-packaging/Kivy/kivy/graphics
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-MW0004/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/tmp/pycharm-packaging/Kivy/kivy/include -I/tmp/pycharm-packaging/Kivy/kivy/include -I/usr/include/python2.7 -c /tmp/pycharm-packaging/Kivy/kivy/graphics/opengl.c -o build/temp.linux-x86_64-2.7/tmp/pycharm-packaging/Kivy/kivy/graphics/opengl.o
In file included from /tmp/pycharm-packaging/Kivy/kivy/graphics/opengl.c:599:0:
/tmp/pycharm-packaging/Kivy/kivy/include/gl_redirect.h:72:13: fatal error: GL/gl.h: Arquivo ou diretório inexistente
# include
^~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/paulo/PycharmProjects/kivy/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pycharm-packaging/Kivy/setup.py'"'"'; __file__='"'"'/tmp/pycharm-packaging/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-record-oFIQGK/install-record.txt --single-version-externally-managed --compile --install-headers /home/paulo/PycharmProjects/kivy/venv/include/site/python2.7/Kivy Check the logs for full command output.
Antes o pycharm pediu para verificar se o pacote de desenvolvedor estava instalado. Instalei com: apt-get install python-dev. Não deu erro.
Ja desinstalei o kivy e reinstalei pelo gerenciador de aplicativos.
Continuo sem conseguir instalar e dá o erro acima.
Instalei o kivy pelo gerenciador de aplicativos. Não deu erro.
Quanto tento instalar o Kivy pelo menu de configurações/Project Interpreter do pycharm ele dá erro de instalação conforme abaixo:
creating build/temp.linux-x86_64-2.7/tmp/pycharm-packaging
creating build/temp.linux-x86_64-2.7/tmp/pycharm-packaging/Kivy
creating build/temp.linux-x86_64-2.7/tmp/pycharm-packaging/Kivy/kivy
creating build/temp.linux-x86_64-2.7/tmp/pycharm-packaging/Kivy/kivy/graphics
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-MW0004/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/tmp/pycharm-packaging/Kivy/kivy/include -I/tmp/pycharm-packaging/Kivy/kivy/include -I/usr/include/python2.7 -c /tmp/pycharm-packaging/Kivy/kivy/graphics/opengl.c -o build/temp.linux-x86_64-2.7/tmp/pycharm-packaging/Kivy/kivy/graphics/opengl.o
In file included from /tmp/pycharm-packaging/Kivy/kivy/graphics/opengl.c:599:0:
/tmp/pycharm-packaging/Kivy/kivy/include/gl_redirect.h:72:13: fatal error: GL/gl.h: Arquivo ou diretório inexistente
# include
^~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/paulo/PycharmProjects/kivy/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pycharm-packaging/Kivy/setup.py'"'"'; __file__='"'"'/tmp/pycharm-packaging/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-record-oFIQGK/install-record.txt --single-version-externally-managed --compile --install-headers /home/paulo/PycharmProjects/kivy/venv/include/site/python2.7/Kivy Check the logs for full command output.
Antes o pycharm pediu para verificar se o pacote de desenvolvedor estava instalado. Instalei com: apt-get install python-dev. Não deu erro.
Ja desinstalei o kivy e reinstalei pelo gerenciador de aplicativos.
Continuo sem conseguir instalar e dá o erro acima.
Entre ou Registre-se para fazer um comentário.