Open In App

How to Install xlrd in Python in Windows?

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:

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

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:

Verifying xlrd Installation on Windows:

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




import xlrd
xlrd.__version__

If successfully installed you will get the following output:

Article Tags :