Home > database >  VS Code won't launch python project, returns error ModuleNotFoundError: No module named 'p
VS Code won't launch python project, returns error ModuleNotFoundError: No module named 'p

Time:11-13

VS Code won't launch python project, returns error ModuleNotFoundError: No module named 'pygame'

import sys
import pygame
from settings import Settings
from ship import Ship
from bullet import Bullet

I've uninstalled pygame, updated pygame and python, check pygame status and I can launch the test game from the website, I was able to launch my project then it stopped working and I keep getting this error after I merged some changes from my repo.

CodePudding user response:

It looks like just an environment problem. Could you check which python interpreter you are using, which pip you are using, which environment the pip has been installed into?

enter image description here

  • Related