Open In App

How to Install Python-openpyxl package on Linux?

Last Updated : 24 Feb, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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

Installing-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

Installing-pip-module

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

sudo pip3 install openpyxl 

Installing-Openpyxl

Verifying Openpyxl package installation on Linux using PIP

  • To verify if the Openpyxl package has been successfully installed in your system run the below command in Terminal:

python3 -m pip show openpyxl 

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

Verifying-Openpyxl-package


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads