How To Install python3-pypathlib on Ubuntu 20.04

In this tutorial we learn how to install python3-pypathlib on Ubuntu 20.04. python3-pypathlib is Python tools for 2D open and closed paths

Introduction

In this tutorial we learn how to install python3-pypathlib on Ubuntu 20.04.

What is python3-pypathlib

python3-pypathlib is:

Lightweight package for working with 2D paths/polygons.

pypathlib is fully vectorized, so it’s pretty fast. (Not quite as fast as mathplotlib.path.contains_points though.)

Relevant publications:

  • S.W. Sloan, A point-in-polygon program. Adv. Eng. Software, Vol 7, No. 1, pp.45-47, 1985, doi:10.1016/0141-1195(85)90094-4

There are three methods to install python3-pypathlib on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python3-pypathlib Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python3-pypathlib using apt-get by running the following command:

sudo apt-get -y install python3-pypathlib

Install python3-pypathlib Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python3-pypathlib using apt by running the following command:

sudo apt -y install python3-pypathlib

Install python3-pypathlib Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python3-pypathlib using aptitude by running the following command:

sudo aptitude -y install python3-pypathlib

How To Uninstall python3-pypathlib on Ubuntu 20.04

To uninstall only the python3-pypathlib package we can use the following command:

sudo apt-get remove python3-pypathlib

Uninstall python3-pypathlib And Its Dependencies

To uninstall python3-pypathlib and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove python3-pypathlib

Remove python3-pypathlib Configurations and Data

To remove python3-pypathlib configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge python3-pypathlib

Remove python3-pypathlib configuration, data, and all of its dependencies

We can use the following command to remove python3-pypathlib configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python3-pypathlib

References

Summary

In this tutorial we learn how to install python3-pypathlib package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.