0
I am learning to program python through Vscode and found it difficult to import the pygame module.
import pygame
pygame.init()
pygame.mixer.music.load('nomedamusica.mp3')
pygame.mixer.music.play()
pygame.event.wait()
The message I get is: Modulenotfounderror: No module named 'pygame'
I tried to install the module through IDLE Python using the
python -m pip install pygame
and gave Invalid Syntax
Which way should I go to install this module and any other module?