0

I have tried to manually install the package but still failed to call module RPI

sudo apt-get -y install python3-rpi.gpio

I used the above command to install the package, it shows that is already the newest version, however i still get the error no module named RPI. Anyone has the same problem?

SOLVED: Use

import RPi.GPIO as GPIO 

Instead of

import RPI.GPIO as GPIO
1

pip install RPi.GPIO

Change
import RPI.GPIO as GPIO
to
import RPi.GPIO as GPIO

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.