Kivy in Visual Studio Code?

1,282 views
Skip to first unread message

David Rivera

unread,
Jul 2, 2021, 7:30:55 PM7/2/21
to Kivy users support
I have tried a lot of the install things and I still get the error "No module named 'kivy.app'; 'kivy' is not a package" It runs just fine in IDLE, and my IDLE python version and Visual Studio Code python version are the same. I need help. I cannot find anything anywhere that will show me how to make it work in Visual Studio Code.

Robert

unread,
Jul 3, 2021, 2:22:06 AM7/3/21
to Kivy users support
From here this looks like a Visual Studio setup issue, not a subject that comes up here.
Here are three things to check:

1) A little Googling suggests this may be the related
So check that this is the only Python in Visual Studio (or is the Python actually used)

2) Visual Studio Code python version are the same.
Check not just the version, check that they are really from the same build with    python  -VV    (yes, 2 Vs) 
Because MS Python does differ from python.org Python.

3) Check that 'pip list' shows Kivy installed.

My guess would be door #2 and VS has MS Python, but since nobody seems to use MS Python it is just a guess.
If this is the case an 'import kivy' at the top of the file might get past this issue.
But I do not recommend this workaround as a solution, as I expect similar issues will arise again and again.
Reply all
Reply to author
Forward
0 new messages