我正在使用pycharm,当然我是新手。我按照博客的规定进行了安装和所有操作。我的IDE软件包列表中也有kivy。仍然出现以下错误
from kivy.app import App
from kivy.uix.gridlayout import GridLayout
class Container(GridLayout):
pass
class MainApp(App):
def build(self):
self.title = 'Awesome app!!!'
return Container()
if __name__ == "__main__":
app = MainApp()
app.run()
/usr/bin/python3.7 /root/PycharmProjects/suraj/first_class.py
[INFO ] [Logger ] Record log in /root/.kivy/logs/kivy_18-09-23_2.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.7.0 (default, Jun 27 2018, 14:40:03)
[GCC 8.1.0]
Traceback (most recent call last):
File "/root/PycharmProjects/suraj/first_class.py", line 1, in <module>
from kivy.app import App
File "/usr/lib/python3/dist-packages/kivy/app.py", line 319, in <module>
from kivy.base import runTouchApp, stopTouchApp
File "/usr/lib/python3/dist-packages/kivy/base.py", line 26, in <module>
from kivy.clock import Clock
File "/usr/lib/python3/dist-packages/kivy/clock.py", line 362, in <module>
from kivy._clock import CyClockBase, ClockEvent, FreeClockEvent, \
ModuleNotFoundError: No module named 'kivy._clock'
Process finished with exit code 1