Did you follow these steps? If so, you should see python 2.x version reported.
Go to ...mingw32\bin directory, delete (or rename to something else) existing python.exe (currently version 3) and then finally rename (or copy and rename the copied file) python2.7.exe (version 2) to python.exe.
Btw, just spotted you are using mingw64 console. Try using mingw32 instead, despite you have 64bit MSYS! I've never succeeded building package in mingw64, so only using mingw32.
Furthermore, if you have followed f5soh guideline for installing python2, it was installed in mingw32\bin directory!
From MinGw32 console, try installing Python ?
pacman -S --needed mingw-w64-i686-python2
Octav@Octavian MINGW32 ~
$ pacman -S --needed mingw-w64-i686-python2
warning: mingw-w64-i686-python2-2.7.17-1 is up to date -- skipping
there is nothing to do ...
I'll try building with MINGW32 the package ... and see further.
Thanks!
Later edit: Reinstalled 32bit version and followed : "Go to ...mingw32\bin directory, delete (or rename to something else) existing python.exe (currently version 3) and then finally rename (or copy and rename the copied file) python2.7.exe (version 2) to python.exe."
Success!
and some more errors:
E:/msys32/mingw32/share/qt5/mkspecs/common/windows-vulkan.conf:1: Cannot find feature windows_vulkan_sdk
E:/msys32/mingw32/share/qt5/mkspecs/common/windows-vulkan.conf:1: Cannot find feature windows_vulkan_sdk
Project MESSAGE: Using python interpreter: "python"
WARNING: headers.path is not defined: install target not created
Project ERROR: gstreamer-app-1.0 development package not found
mingw32-make: *** [Makefile:296: E:/msys32/home/Octav/librepilot/build/librepilot-gcs_release/Makefile] Error 3
Thanks again.