How To Install python-visual on Debian 9

In this tutorial we learn how to install python-visual on Debian 9. python-visual is VPython 3D scientific visualization library

Introduction

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

What is python-visual

python-visual is:

Visual is a Python module for 3D scientific visualization. It offers real-time 3D output and is easily usable by novice programmers.

A program can create 3D objects (such as spheres, curves, etc.) and position them in 3D space. Visual, running in a separate thread, automatically updates a 3D scene many times per second to reflect the current position of the objects. The programmer does not need to deal with display management but can focus on the computational aspects for the program. The user can navigate in the 3D scene by using the mouse to zoom and rotate while the program is running. Visual supports full vector algebra.

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

sudo apt-get -y install python-visual

Install python-visual Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-visual

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

sudo aptitude -y install python-visual

How To Uninstall python-visual on Debian 9

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

sudo apt-get remove python-visual

Uninstall python-visual And Its Dependencies

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

sudo apt-get -y autoremove python-visual

Remove python-visual Configurations and Data

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

sudo apt-get -y purge python-visual

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

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

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

Dependencies

python-visual have the following dependencies:

References

Summary

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