How to deal with Kivy installing error in Python 3.8?

前端 未结 5 1105
小蘑菇
小蘑菇 2020-12-09 04:42

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:

相关标签:
5条回答
  • 2020-12-09 05:02

    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/
    
    0 讨论(0)
  • 2020-12-09 05:04

    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()
    
    0 讨论(0)
  • 2020-12-09 05:15

    This works in macOS Catalina 10.15.6 with python 3.8.0+

    pip install kivy==2.0.0rc2
    
    0 讨论(0)
  • 2020-12-09 05:16

    If you are using conda environment:

     conda install -c conda-forge kivy 
    

    works in python 3.8

    0 讨论(0)
  • 2020-12-09 05:18

    I am windows 10, with 3.8.2

    seems pip install kivy==2.0.0rc2 worked. At least it installed.

    time to tell if I can develop with it using 3.8.2

    0 讨论(0)
提交回复
热议问题