Mingw64 and Python 3.12.2 conflict in VS code

44 Views Asked by At

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.

1

There are 1 best solutions below

0
JialeDu On

Use the Ctrl+Shift+P --> Python: Select Interpreter command in vscode to select the python environment.

If you are using a virtual environment, a new terminal will automatically activate the environment, installing pygame for your current environment. you will also need to use the official extended Python executable. This will use the correct interpreter.