Kivy-python: error while running Hello world

后端 未结 2 1440
终归单人心
终归单人心 2021-01-23 11:06

After installing Kivy, I tried to run a Hello World app, but I get an error. I\'ve google it but cannot find satisfied answer. Here is the error:

[INFO   ] Kivy          


        
相关标签:
2条回答
  • 2021-01-23 11:33

    That error is usually due to your computer having a very poor graphics chip, or poor video card drivers. Your card and drivers must support OpenGL ES 2 for Kivy apps to work. If you are running this in a virtual machine, make sure you have turned on 3D acceleration for that VM.

    0 讨论(0)
  • 2021-01-23 11:50

    I was getting this same error message ("Unable to get a Window, abort.") in a virtualenv installation of kivy (installed directly from GitHub) like so:

    pip install hg+http://bitbucket.org/pygame/pygame
    pip install Cython
    pip install git+git://github.com/kivy/kivy.git 
    

    In my case there was an previous error related to png, so I tried installing pillow in my virtualenv:

    pip install pillow
    

    And it's now working.

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