V
V
VadimTolk2018-05-24 01:22:42
Python
VadimTolk, 2018-05-24 01:22:42

PyCharm does not see the Add method. How to fix?

I tell everything as it was.
I installed Kivy.
Run test program on command line

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


class TestApp(App):
    def build(self):
        return Button(text='Hello World')


TestApp().run()

Everything worked, hurray!!!
Then I started trying the same code in PyCharm, it doesn’t work, it gives an error of such a plan
Traceback (most recent call last):
File "D:/PythonLessons/Kivy.py", line 1, in
from kivy.app import App
ImportError: cannot import name 'App'
All day I asked Google what to do, I did not find an answer (((
Please tell me what to do ????

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question