Raspberry Pi 2, Ubuntu Mate 20.10 desktop armhf, RPi.GPIO help

Hello, I am new to Ubuntu-Mate and raspberry pi, trying to get into a linux environment.
I install Ubuntu Mate 20.10 on a Raspberry Pi 2.
After looking at multiple forums, I managed to install RPi.GPIO using

~$ export CFLAGS=-fcommon
~$ pip install RPi.GPIO

The install was successful but when I attempt to run a python script that import RPi.GPIO as GPIO, I get an error:
ModuleNotFound Error: No module named 'RPi'

I tried to look though all python2.7, python3, python3.8 and python3.9, folders, I couldnt find any files related to rpi-gpio.

Mate is good and runs great on a Raspberry Pi 4. Not sure how anything less can handle it. I would think a Pi 2 would get overly taxed. Best of luck. :ok_hand:t2:

Its abit slow but it works fine, Im using the 32bit OS, suggested by Ubuntu Mate website.

Any help in sorting out RPi.GPIO library? :sob: