Python - 模块不工作

时间:2017-12-19 02:00:22

标签: python module path

所以我下载了“kivy”模块(使用'命令提示符'),如此视频“https://www.youtube.com/watch?v=B79miUFD_ss&list=PLGLfVvz_LVvTAZ-OcNIXe05srJRXaJRd9”所示

但每当我尝试运行此代码时:

import kivy
kivy.require('1.9.0')

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

# Inherit Kivy's App class which represents the window
# for our widgets
# HelloKivy inherits all the fields and methods
# from Kivy
class HelloKivy(App):

    # This returns the content we want in the window
    def build(self):

        # Return a label widget with Hello Kivy
        return Label(text="Hello Kivy")

helloKivy = HelloKivy()
helloKivy.run()

它说该模块不存在? 我如何找到该模块(和其他模块)的路径?

0 个答案:

没有答案