Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8062

Python • Re: Unable to load / install RPLCD on RPI 5

$
0
0
I have created a virtual environment : (viv_projects).

Running a script in thonny,
I get the following error:
from RPLCD import CharLCD
ModuleNotFoundError: No module named 'RPLCD'

The module RPLCD is installed using venv (viv_projects). How can I link the Thonny script to see the RPLCD Library so that the script will exicute.
This is the script:

from RPLCD import CharLCD
lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[40, 38, 36, 32, 33, 31, 29, 23])
lcd.write_string(u'Hello world!')

Statistics: Posted by Viv Dold — Thu Dec 18, 2025 1:14 pm



Viewing all articles
Browse latest Browse all 8062

Trending Articles