我们必须用 kivy 模块对 运行 py 文件做些什么

What we have to do to run py files with kivy module

我插入了一张图片,在使用 'kivy' 模块 运行 宁 python 的文件时显示错误,有人可以告诉我我必须做什么吗运行 这个 'kivy' 文件,我是需要更换我的显卡还是我必须做些什么,有人告诉我

这是我正在尝试的文件运行

import kivy from kivy.app import App from kivy.uix.label import Label

class MyApp(App):
    def build(self):
        return Label(text='hello')

if __name__ == "__main__":
    MyApp().run()

看来您需要按照说明安装 OpenGl 2.0 或更高版本。您可以下载最新版本here. This is just a graphics driver, software to interact with your gpu. If you use nvidia you can even automatically download any necessary drivers from their Geforce Experience程序,但我不确定是AMD还是集成显卡。

但是,如果您已经拥有 2.0 或更高版本并且错误仍然存​​在,请尝试找到的答案之一 here