How To Install python-pythoncard on Debian 9

In this tutorial we learn how to install python-pythoncard on Debian 9. python-pythoncard is wxPython-based GUI construction framework (underlying Python libraries)

Introduction

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

What is python-pythoncard

python-pythoncard is:

PythonCard is a GUI construction framework for building cross-platform desktop applications on Windows, Mac OS X, and Linux, using the Python language. It is based on the wxPython bindings for the wxWidgets toolkit (formerly known as wxWindows).

This package includes the PythonCard Python package and all of its associated Python modules.

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

sudo apt-get -y install python-pythoncard

Install python-pythoncard Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-pythoncard

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

sudo aptitude -y install python-pythoncard

How To Uninstall python-pythoncard on Debian 9

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

sudo apt-get remove python-pythoncard

Uninstall python-pythoncard And Its Dependencies

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

sudo apt-get -y autoremove python-pythoncard

Remove python-pythoncard Configurations and Data

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

sudo apt-get -y purge python-pythoncard

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

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

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

Dependencies

python-pythoncard have the following dependencies:

References

Summary

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