2

Hello I know this question has been asked multiple times , but I am still having problem , I have tried all the solution in the other threads but it isn't working for me.

I have error when I run my python file

"No module named Kivy "

I have also set the path of the kivy correctly . Still the error persist .

Things I have tried :

ModuleNotFoundError: No module named kivy.app in Python

Trying to run KIVY, for the first time

No module named 'Kivy' even though I installed it

My code:

from kivy.app import App
from kivy.uix.widget import Widget
from kivy.uix.button import Button
from kivy.graphics import Color, Ellipse, Line
from kivy.config import Config
from kivy.properties import NumericProperty, ReferenceListProperty, ObjectProperty
from kivy.vector import Vector
from kivy.clock import Clock
10 Rep
  • 2,217
  • 7
  • 19
  • 33

2 Answers2

1

This might be Issue with the version of the python you are using. Try this command :-

 python --version

The result might be either Python 2.X.XX or Python 3.X.XX.

If the result is Python 2.X.XX, use this command to install kivy

pip install kivy
         OR
python -m pip install kivy

Or if the result is Python 3.X.XX, use

pip3 install kivy 
       OR
python -m pip3 install kivy

Note : You need to have pip or pip3 install in your system.

anoopknr
  • 3,177
  • 2
  • 23
  • 33
  • 1
    Let me also add: Sometimes you need to do `python -m pip install kivy`, or `python -m pip3 install kivy`. It works for me all the time. – 10 Rep Jun 29 '20 at 04:11
  • @10Rep Thanks for that additional knowledge. I have added that to may answer. – anoopknr Jun 29 '20 at 04:16
0

The maximum version of python that kivy supports at this moment is python3.7 and i'll even recommend python3.6 instead

LadyCoder
  • 306
  • 1
  • 9