How To Install python-numpy-dbg on Ubuntu 20.04

In this tutorial we learn how to install python-numpy-dbg on Ubuntu 20.04. python-numpy-dbg is Fast array facility to the Python language (debug extension)

Introduction

In this tutorial we learn how to install python-numpy-dbg on Ubuntu 20.04.

What is python-numpy-dbg

python-numpy-dbg is:

Numpy contains a powerful N-dimensional array object, sophisticated (broadcasting) functions, tools for integrating C/C++ and Fortran code, and useful linear algebra, Fourier transform, and random number capabilities.

Numpy replaces the python-numeric and python-numarray modules which are now deprecated and shouldn’t be used except to support older software.

This package contains the extension built for the Python debug interpreter. Build-Ids: 17108e107763fd7e1fb151d1f8ff3fbb03ba6d15 1d69f503fb0704d029c6599a7f45da66b159e3a3 4c4ebc361afc4410393cdd78bce91f97743b15a0 4fce20e1b1b8b9c5f9551ac698baa26ad28500e8 59ecc19ba3fe8f8289e9fa6666470433e73c70cd 5f5894bd33f55db39158a823af8588061e8f48c6 75f686ac485426dbb38249d0bea01353c57d9789 a77f55d21bb67cec2bd48e14e109a42be2ac72c9 c1d1f48853aae95bf618b0caa285432f929314f9 c3ad213445e7f7ed950cf4b94c2d259feb9081f9 e301c82decb77d4e28814582abf2d6d7f29a8e50

There are three methods to install python-numpy-dbg 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 python-numpy-dbg 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-numpy-dbg using apt-get by running the following command:

sudo apt-get -y install python-numpy-dbg

Install python-numpy-dbg Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-numpy-dbg

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

sudo aptitude -y install python-numpy-dbg

How To Uninstall python-numpy-dbg on Ubuntu 20.04

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

sudo apt-get remove python-numpy-dbg

Uninstall python-numpy-dbg And Its Dependencies

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

sudo apt-get -y autoremove python-numpy-dbg

Remove python-numpy-dbg Configurations and Data

To remove python-numpy-dbg configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge python-numpy-dbg

Remove python-numpy-dbg configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-numpy-dbg

References

Summary

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