I've installed pygame on vscode but vscode can't import pygame showing this error ModuleNotFoundError: No module named 'pygame'
Any help?
Asked
Active
Viewed 1,685 times
0

UpAndAdam
- 4,515
- 3
- 28
- 46
2 Answers
1
If you are working with virtual environments make sure you are on the environment where pygame is installed when you run your code.

Kellem Negasi
- 151
- 3
0
1) open terminal in visual code 2) run command
pip install pygame
3)import pygame in your code

abhizuk
- 1