I installed pip on MSYS2 using the following command in the MSYS2 shell: pacman -S mingw-w64-x86_64-python-pip (web page for the package: https://packages.msys2.org
pacman -S mingw-w64-x86_64-python-pip