Python Forum
Does "import xlrd" work in Thonny?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does "import xlrd" work in Thonny?
#1
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'
Reply
#2
did you install?
from command line:
pip install xlrd
Reply
#3
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.
Reply
#4
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Selecting correct xlrd version Kithsiri 4 561 Feb-27-2024, 07:09 AM
Last Post: Kithsiri
Question Sonar Code in Thonny for Pi Pico iansmiler 1 370 Nov-22-2023, 12:27 PM
Last Post: deanhystad
  getting an import statement to work in my program barryjo 1 1,669 Dec-06-2021, 04:28 PM
Last Post: snippsat
  Minimal python install for thonny ide DanielRossinsky 0 1,517 Jun-11-2020, 02:31 PM
Last Post: DanielRossinsky
  import scalalib package doesn't work manu_brighter 2 2,908 Apr-17-2020, 06:36 PM
Last Post: snippsat
  [split] import PIL dont work vedansh 1 2,095 Mar-29-2020, 10:00 AM
Last Post: Larz60+
  import PIL dont work rodink 14 12,918 Feb-22-2020, 08:48 PM
Last Post: snippsat
  Issues installing xlrd KipCarter 2 2,851 Jan-24-2020, 12:20 PM
Last Post: KipCarter
  XLRD Package not be able to call dhiliptcs 2 2,306 Sep-24-2019, 05:21 PM
Last Post: dhiliptcs
  ImportError: No module named xlrd dhiliptcs 5 17,500 Sep-21-2019, 12:17 PM
Last Post: brighteningeyes

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020