I have installed Python 3.12.2 but in pygame program it shows no module found pygame even though I have installed Pygame using pip(with installed Mingw64)
I have checked after the uninstallation of Mingw64 the program works properly.
In cmd when I type python --version it shows 3.12.2 without mingw64 on system but with installed Mingw64 it shows 3.11.8.
In environmental variables python scripts and exe paths are before mingw64/bin path.
Use the Ctrl+Shift+P -->
Python: Select Interpretercommand in vscode to select the python environment.If you are using a virtual environment, a new terminal will automatically activate the environment, installing
pygamefor your current environment. you will also need to use the official extended Python executable. This will use the correct interpreter.