Python Forum

Full Version: Does "import xlrd" work in Thonny?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I installed Python 3.8 on my computer and I also installed Thonny. Since I am new to programming, I prefer the Thonny interface where you can see all the codes in nice colors and also the results of the program are shown below on the same page. I wrote a code trying to read from an excel file. The "Import xlrd" works fine in Python but always gives me an error in Thonny. Does it not work in Thonny? The error message is below:

import xlrd
ModuleNotFoundError: No module named 'xlrd'
did you install?
from command line:
pip install xlrd
Yes I installed from command line. That was how I got it to work in python 3.8.2 but on computer, it will not work in Thonny.
Sorry, I guess I can't answer this properly as I know nothing about Thonny.
My only suggestion would be to find out which version Thonny is using.
then from their shell, try pip list and make sure you see xlrd