Python Forum
XLRD Package not be able to call
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XLRD Package not be able to call
#1
I want to extract data from Excel sheet and I got the following error like

ImportError: No module named xlrd

Then I looked at where Python is reading from by entering the following commands

import sys
print sys.path

['', '/opt/miniconda/current/lib/python27.zip', '/opt/miniconda/current/lib/python2.7', '/opt/miniconda/current/lib/python2.7/plat-linux2', '/opt/miniconda/current/lib/python2.7/lib-tk', '/opt/miniconda/current/lib/python2.7/lib-old', '/opt/miniconda/current/lib/python2.7/lib-dynload', '/opt/miniconda/current/lib/python2.7/site-packages', '/opt/miniconda/current/lib/python2.7/site-packages/setuptools-15.0-py2.7.egg']


but, xlrd package is in the location "/opt//projects/software/miniconda_3.7.3/pkgs/xlrd-1.1.0-py35_0/lib/python3.5/site-packages/xlrd"

can anyone help me in how to call the xlrd package and eventually get me out of specified Import Error above?
Reply
#2
Are you running miniconda_3.7.3?
the instance of xlrd is for that version of python only.
If you are running another version, you will need to install xlrd fro that version.
Reply
#3
ah.. alrite...
now I got it. Thank you
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Selecting correct xlrd version Kithsiri 4 528 Feb-27-2024, 07:09 AM
Last Post: Kithsiri
  Does "import xlrd" work in Thonny? cnutakor 3 3,005 Apr-30-2020, 12:41 AM
Last Post: Larz60+
  Issues installing xlrd KipCarter 2 2,826 Jan-24-2020, 12:20 PM
Last Post: KipCarter
  ImportError: No module named xlrd dhiliptcs 5 17,482 Sep-21-2019, 12:17 PM
Last Post: brighteningeyes
  Does XLRD have a method to extract embedded objects (pdf) from an excel sheet? matthewme 1 2,498 Jun-13-2019, 10:00 PM
Last Post: Larz60+
  Help | float to Int in xlrd Vinci141 0 3,011 May-13-2019, 07:00 AM
Last Post: Vinci141
  How to obtain the background color of a cell using xlrd? Krszt 1 12,482 Mar-12-2019, 11:23 PM
Last Post: hshivaraj
  Iterate over excel-sheets using xlrd tobbs 6 12,409 Feb-28-2019, 08:33 PM
Last Post: tobbs
  pip install xlrd error sandy 3 12,646 Jan-19-2019, 08:01 AM
Last Post: hbknjr

Forum Jump:

User Panel Messages

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