I have installed pygame and when I used the IDLE app that came with Python I can import it and it runs perfectly. However, when I try to import it in vscode I get the error: ModuleNotFoundError: No module named 'pygame'. I can not find out what to do. Can someone help me?
CodePudding user response:
Try
Pip install pygame
on the vscode terminal.
If that doesn’t work check this out:
i can't import pygame in visual studio code
CodePudding user response:
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).
