Open In App

How to Install Geopandas Package on Ubuntu?

Geopandas is a Python library. It is used to add geographical data to pandas library as an object Geopandas is like a data provider library to the Pandas library in data visualization. In this article, we learn how to install Geopandas on a Linux operating system.

Requirements:



Installing Geopandas package on Linux using PIP

To install the Geopandas package in Linux we have to follow the following steps:

Step 1: First of all, we will install Python3 on our Linux Machine. Use the following command in the terminal to install Python3.



sudo apt-get install python3

Step 2: Now, install the pip module which is required to install the packages in Python3. So we use the following command for installation:

sudo apt install python3-pip

Step 3: Now, install the Geopandas package by using the following command.

sudo pip3 install geopandas

or 

sudo apt install python-geopandas

When you are installing Geopandas using pip make sure that all its dependencies install properly and the dependencies for linux are fiona, pyproj, rtree, shapely, etc.

Verifying Geopandas package Installation on Linux using PIP

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

python3 -m pip show geopandas

You’ll get the below message if the installation is completed successfully. 

Article Tags :