I'm new to this RPI world and also to python although I completed the basic courses I'm still getting used to this so I will appreciate your patience I'll try to express my self the best way.
I downloaded a few packages to work with a 16x02 LCD (QAPASS 1602a) using "Terminal" and there were no problems on the installation process but when I tried to import them on a python script using Thonny IDE i keep getting this error message :
Python 3.5.3 (/usr/bin/python3)
>>> import RPLCD
Traceback (most recent call last):
File "<pyshell>", line 1, in <module>
ImportError: No module named 'RPLCD'
To install this I used:
sudo pip install RPLCD
I figured out what the problem is ** but I don't know how to fix it or what causes it because I don't have enough knowledge for the moment to do this, But I will be really thankful if you guys can give any advice on were took look at this kind of stuff like posts or courses.
Problem: I don't know how but the package installed can't be "read" by python 3 as you can see above but if I go on into "terminal" and do the following:
pi@raspberrypi:~ $ python2
Python 2.7.13 (default, Nov 24 2017, 17:33:09)
[GCC 6.3.0 20170516] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import RPLCD
everything looks correct and no errors are shown.
It looks like python 3.5.3 interpreter is not able to use this packages and python 2.7.13 is.
I've also installed the adafriut library doing the following and I had the same results.
git clone https://github.com/adafruit/Adafruit_Python_CharLCD.git
cd ./Adafruit_Python_CharLCD
sudo python setup.py install