0

I've installed pygame on vscode but vscode can't import pygame showing this error ModuleNotFoundError: No module named 'pygame' Any help?

UpAndAdam
  • 4,515
  • 3
  • 28
  • 46

2 Answers2

1

If you are working with virtual environments make sure you are on the environment where pygame is installed when you run your code.

0

1) open terminal in visual code 2) run command

pip install pygame

3)import pygame in your code