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.