Python Forum
ImportError: No module named xlrd
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ImportError: No module named xlrd
#1
I am trying to extract data from XL sheet and I tried to use the below

import xlrd
Error:
ImportError: No module named xlrd
( I also tried "pandas", "openpyxl"; Same error resulted)

When I checked in lib folder, I was able to find xlrd package

in the path - /projects/software/miniconda_3.7.3/pkgs/xlrd-1.1.0-py35_0/lib/python3.5/site-packages/xlrd

can anyone please help me how to resolve this?
Reply
#2
Do you have more than one install of python / are you sure you are using miniconda_3.7.3 in this instance.
Reply
#3
Yes, I believe we do have the below.

python -V
Python 2.7.13

Looks like, we are not referring to below miniconda_3.7.3..

Please let me know how to utilize or install or invoke packages(specifically xlrd)
Reply
#4
It depends how you are running the code ?
Reply
#5
Thank you!
Reply
#6
hi,
type
python3 -v
and check it's version
also, use
pip3 install xlrd
to install it
the same is true with pandas
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ModuleNotFoundError: No module named 'tkcalendar', Thonny, Windows 10 Edward_ 4 849 Apr-06-2025, 07:56 PM
Last Post: Edward_
  No module named 'importlib.metadata' EdVS 3 1,081 Jan-30-2025, 09:55 AM
Last Post: Larz60+
  ModuleNotFoundError: No module named 'athena_read' raman 2 1,319 Jul-01-2024, 07:52 AM
Last Post: Gribouillis
  Selecting correct xlrd version Kithsiri 4 3,299 Feb-27-2024, 07:09 AM
Last Post: Kithsiri
  no module named 'docx' when importing docx MaartenRo 1 5,693 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 31,245 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 10,153 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 4,553 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 3,887 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 3,251 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington

Forum Jump:

User Panel Messages

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