Importing xlrd

John Machin sjmachin at
Tue Jun 3 02:48:28 CEST 2008

On Jun 3, 8:23 am, Chanman <bryancc... at> wrote:
> This is probably a simple question to most of you, but here goes.
> I've downloaded the xlrd (version 0.6.1) module and placed in in the
> site-packages folder.  Now, when I write a script, I type:
> import sys
> import xlrd
> When I run it, there is an import error saying there is no module
> named xlrd.  However when I type sys.path, the site-packages folder is
> definitely in the path.  Do I somehow need to run the xlrd
> first before importing?
> Any help would be appreciated.

>From the xlrd home-page (

    * Windows only: download and run this installer
xlrd-0.6.1.win32.exe. Any platform: download this ZIP file which you unzip into a suitable directory, then cd to
that directory, and do "python install".

>From the xlrd README file:

    * On Windows: use the installer.
    * Any OS: Unzip the .zip file into a suitable directory, chdir to
that directory, then do "python install".
    * If PYDIR is your Python installation directory: the main files
are in PYDIR/Lib/site-packages/xlrd (except for Python 2.1 where they
will be in PYDIR/xlrd), the docs are in the doc subdirectory, and
there's a sample script: PYDIR/Scripts/
    * If os.sep != "/": make the appropriate adjustments.

More information about the Python-list mailing list