'How can I get PyGame to work with VSCode?

I already have installed the pygame package and get this error :

ModuleNotFoundError: No module named 'pygame'


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source