Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deal with Kivy installing error in Python 3.8?

I have installed every necessary code in Python from Kivy, but the last one I need which one is python -m pip install kivy gets me an error like this:

ERROR: Dependency for context.pyx not resolved: config.pxi
ERROR: Dependency for compiler.pyx not resolved: config.pxi
ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
ERROR: Dependency for fbo.pyx not resolved: config.pxi
ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
ERROR: Dependency for instructions.pyx not resolved: config.pxi
ERROR: Dependency for opengl.pyx not resolved: config.pxi
ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
ERROR: Dependency for shader.pyx not resolved: config.pxi
ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
ERROR: Dependency for texture.pyx not resolved: config.pxi
ERROR: Dependency for vbo.pyx not resolved: config.pxi
ERROR: Dependency for vertex.pyx not resolved: config.pxi
ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
ERROR: Dependency for cgl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
ERROR: Dependency for svg.pyx not resolved: config.pxi
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I use windows 10, please help!

like image 323
Atis Avatar asked Dec 01 '19 11:12

Atis


People also ask

How do I manually install Kivy?

Open the command terminal with (kvenv), type python -m pip install kivy[full] , and press enter. Note: If you look at Kivy's website, you will see that it says to type “python -m pip install kivy[full] kivy_examples” instead of “python -m pip install kivy[full].” However, both ways will work.

How do I install Kivy in Python?

For other Kivy versions, select the documentation from the dropdown on the top left. Kivy 2.1.0 officially supports Python versions 3.7 - 3.10. The easiest way to install Kivy is with pip, which installs Kivy using either a pre-compiled wheel, if available, otherwise from source (see below).

Why won’t my virtual environment work with Kivy?

If it doesn’t say that, the virtual environment is not active and the following won’t work. The simplest is to install the current stable version of kivy and optionally kivy_examples from the kivy-team provided PyPi wheels. Simply do: This also installs the minimum dependencies of Kivy.

How do I know what version of Kivy I have?

You can find the development version in the master branch of the Kivy Github repository. As opposed to the last stable release (which we discussed in the previous section), nightly wheels contain all the latest changes to Kivy, including experimental fixes. For installation instructions, see Pre-release, pre-compiled wheels.

What backends does Kivy support?

Kivy supports one or more backends for its core providers. E.g. it supports glew, angle, and sdl2 for the graphics backend on Windows. For each category (window, graphics, video, audio, etc.), at least one backend must be installed to be able to use the category.


2 Answers

This worked for me:

matham commented 15 days ago We are not likely to release a 1.11.1 version for 3.8 to pypi. However, you can install kivy master using:

pip install kivy[base] kivy_examples --pre --extra-index-url https://kivy.org/downloads/simple/
like image 91
Kiara Karla Avatar answered Oct 03 '22 16:10

Kiara Karla


Try using pip install kivy==2.0.0rc2 or pip install kivy==2.0.0rc1

The command: pip install kivy==2.0.0rc2

Works with Windows 10 Pro and Python 3.8.3

And I test it with this code:

from kivy.app import App
from kivy.uix.button import Button
 
class TestApp(App):
    def build(self):
        return Button(text= " Hello Kivy World ")

TestApp().run()
like image 21
Darius-coding Avatar answered Oct 03 '22 18:10

Darius-coding