That error is actually a ‘safety feature’ of the newer Raspberry Pi OS. Since they started protecting the system Python environment, you can’t just use pip install globally anymore. The easiest way around this is to use pipx. Try running these two commands-
sudo apt install pipx
pipx install mmpm
This installs MMPM in its own little ‘bubble’ so it doesn’t mess with the rest of your Pi’s system.