Reputation: 39
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
Upvotes: 2
Views: 643
Reputation: 3355
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.
Upvotes: 1
Reputation: 336
The maximum version of python that kivy supports at this moment is python3.7 and i'll even recommend python3.6 instead
Upvotes: 0