Open In App

How to Install xlrd in Python in Windows?

Improve
Improve
Like Article
Like
Save
Share
Report

The xlrd module in python is used to retrieve information from a spreadsheet. In this article, we will look into the process of installing the xlrd module in a Windows machine.

Pre-requisites:

The only thing that you need for installing the xlrd module on Windows are:

Installing xlrd Module on Windows:

For Conda Users:

If you want the installation to be done through conda,  open up the Anaconda Powershell Prompt and use the below command:

conda install -c anaconda xlrd

Type y for yes when prompted.

You will get a similar message once the installation is complete:

installing xlrd module in windows using conda

Make sure you follow the best practices for installation using conda as:

  • Use an environment for installation rather than in the base environment using the below command:
conda create -n my-env
conda activate my-env

Note: If your preferred method of installation is conda-forge, use the below command:

conda config --env --add channels conda-forge

For PIP Users:

Users who prefer to use pip can use the below command to install the xlrd package on Windows:

pip install xlrd

You will get a similar message once the installation is complete:

installing xlrd module in windows using pip

Verifying xlrd Installation on Windows:

Use the below code in your Python ide to verify successful installation of the xlrd package:

Python3




import xlrd
xlrd.__version__


If successfully installed you will get the following output:

verifying xlrd module installation


Last Updated : 29 Nov, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads