Skip to content
Related Articles
Open in App
Not now

Related Articles

How to Install xlrd in Python on Linux?

Improve Article
Save Article
  • Last Updated : 18 Oct, 2021
Improve Article
Save Article

In this article, we will learn how to install xlrd in Python on Linux. The xlrd is a library for reading data and formatting information from Excel files in the historical .xls format.

Installing xlrd in Python on Linux:

Method 1: Using pip to install xlrd Package

Follow the below steps to install the xlrd package on Linux using pip:

Step 1: Install the latest Python3 in Linux

Step 2: Check if pip3 and python3 are correctly installed.

python3 --version
pip3 --version

checking python and pip version in Linux

Step 3: Upgrade your pip to avoid errors during installation.

pip3 install --upgrade pip

upgrading pip in Linux

Step 4: Enter the following command to install xlrd using pip3.

pip3 install xlrd

installing xlrd package on Linux using pip

Method 2: Using to install xlrd

Follow the below steps to install the xlrd package on Linux using the file:

Step 1: Download the latest source package of xlrd for python3 from here.

curl > xlrd.tar.gz

downloading the source package for xlrd in Linux

Step 2: Extract the downloaded package using the following command.

tar -xvzf xlrd.tar.gz

extracting the xlrd.tar.gz file in Linux

Step 3: Go inside the folder and Enter the following command to install the package.

cd xlrd-2.0.1
python3 install

installing xlrd on Linux using the file

Verifying xlrd installation on Linux:

Make the following import in your python terminal to verify if the installation has been done properly:

import xlrd

Verifying xlrd installation on Linux

If there is any error while importing the module then is not installed properly.

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!