I have installed pygame in the terminal but I cannot find it in vscode and get an error.
Edit:
I found that I was using the wrong python interpreter see my later answer
I have installed pygame in the terminal but I cannot find it in vscode and get an error.
Edit:
I found that I was using the wrong python interpreter see my later answer
Try
Pip install pygame
on the vscode terminal.
If that doesn’t work check this out:
Main reason I see is your project is not configured correctly. probably not the right interpreter or virtual environment. have a look on your settings and see that anything looks as it should be(right python version).
have a look: Module not found error in VS code despite the fact that I installed it
Original answer - by @MOStudios (me)
When any .py
file is open in the editor and is currently being used, near the bottom left, it says Python <version> <32/64>-bit
. Tap it and select the directory that contains the python interpreter version that has kivy installed.
Check the following image for any help
The platform I was using was a chromebook, but the location of changing the editor is the same
Run pip install kivy
to ensure that vscode uses it