Open In App

How to Install Python-openpyxl package on Linux?

Openpyxl is a Python library for reading and writing Excel (with extension xlsx/xlsm/xltx/xltm) files. The openpyxl permits the Python program to read and modify Excel files. Using the Openpyxl module, these tasks can be done very efficiently and simply. So, in this article, we will be installing the Openpyxl package on Linux operating system using Python-Pip.

Installing Openpyxl package on Linux using PIP

Requirements:



  1. Python3
  2. Python3-pip

To install the Openpyxl package in Linux follow the following steps:

Step 1: Install the latest version of Python3 on Linux Machine using the following command in the terminal,



sudo apt-get install python3

Step 2: Now, using the following command we install the pip module which is required to install and manage all the packages of Python3:

sudo apt install python3-pip

Step 3: Using the following command we install the Openpyxl package:

sudo pip3 install openpyxl 

Verifying Openpyxl package installation on Linux using PIP

python3 -m pip show openpyxl 

You’ll get the following output if the installation is completed successfully in your system.

Article Tags :