This means you have multiple versions of python installed on your device, one has the module and the other tries to run the file, go to the control panel and check it out.
I'm using pip 21.2.4 and python 3.9.7
I'm pretty sure I have pip installed since if I run pip --version in the terminal it gives me pip 21.2.4 from C:\Users\rohaan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pip (python 3.9)
If I run pip install pygame in the terminal I get Requirement already satisfied: pygame in c:\users\rohaan\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (2.0.1) 
Despite the requirement being satisfied when I import pygame I get  ModuleNotFoundError: No module named 'pygame'
Does anybody know how to fix this?
Can`t import pygame to VScode despite having it installed