How To Install python-elements on Debian 9

In this tutorial we learn how to install python-elements on Debian 9. python-elements is A 2D Physics API for Python

Introduction

In this tutorial we learn how to install python-elements on Debian 9.

What is python-elements

python-elements is:

An easy to use API for integrating 2D physics (with pybox2d) into own Python ideas, that includes user interfaces & simulations, as well as teaching & learning tools.

There are three methods to install python-elements on Debian 9. 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-elements 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-elements using apt-get by running the following command:

sudo apt-get -y install python-elements

Install python-elements Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-elements

Install python-elements 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install python-elements

How To Uninstall python-elements on Debian 9

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

sudo apt-get remove python-elements

Uninstall python-elements And Its Dependencies

To uninstall python-elements and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove python-elements

Remove python-elements Configurations and Data

To remove python-elements configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge python-elements

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

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

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

Dependencies

python-elements have the following dependencies:

References

Summary

In this tutorial we learn how to install python-elements package on Debian 9 using different package management tools: apt, apt-get and aptitude.