How To Install python-pysal on Ubuntu 18.04

In this tutorial we learn how to install python-pysal on Ubuntu 18.04. python-pysal is Python Spatial Analysis Library - Python 2

Introduction

In this tutorial we learn how to install python-pysal on Ubuntu 18.04.

What is python-pysal

python-pysal is:

PySAL is an open source library of spatial analysis functions written in Python intended to support the development of high level applications.

It is important to underscore what PySAL is, and is not, designed to do. First and foremost, PySAL is a library in the fullest sense of the word. Developers looking for a suite of spatial analytical methods that they can incorporate into application development should feel at home using PySAL. Spatial analysts who may be carrying out research projects requiring customized scripting, extensive simulation analysis, or those seeking to advance the state of the art in spatial analysis should also find PySAL to be a useful foundation for their work.

End users looking for a user friendly graphical user interface for spatial analysis should not turn to PySAL directly. Instead, they should consider projects like STARS and the GeoDaX suite of software products which wrap PySAL functionality in GUIs. At the same time, it’s expected that with developments such as the Python based plug-in architectures for QGIS, GRASS, and the toolbox extensions for ArcGIS, that end user access to PySAL functionality will be widening in the near future.

This package contains the pysal library for Python 2.

There are three methods to install python-pysal on Ubuntu 18.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 python-pysal Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install python-pysal

Install python-pysal Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-pysal

Install python-pysal 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 python-pysal using aptitude by running the following command:

sudo aptitude -y install python-pysal

How To Uninstall python-pysal on Ubuntu 18.04

To uninstall only the python-pysal package we can use the following command:

sudo apt-get remove python-pysal

Uninstall python-pysal And Its Dependencies

To uninstall python-pysal and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove python-pysal

Remove python-pysal Configurations and Data

To remove python-pysal configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-pysal

Remove python-pysal configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-pysal

References

Summary

In this tutorial we learn how to install python-pysal package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.