How To Install python-wxversion on Debian 9

In this tutorial we learn how to install python-wxversion on Debian 9. python-wxversion is API for selecting the wxPython version to use

Introduction

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

What is python-wxversion

python-wxversion is:

wxWidgets (formerly known as wxWindows) is a class library for C++ providing GUI components and other facilities on several popular platforms (and some unpopular ones as well).

This package provides the wxPython version selector.

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

sudo apt-get -y install python-wxversion

Install python-wxversion Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-wxversion

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

sudo aptitude -y install python-wxversion

How To Uninstall python-wxversion on Debian 9

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

sudo apt-get remove python-wxversion

Uninstall python-wxversion And Its Dependencies

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

sudo apt-get -y autoremove python-wxversion

Remove python-wxversion Configurations and Data

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

sudo apt-get -y purge python-wxversion

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

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

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

Dependencies

python-wxversion have the following dependencies:

References

Summary

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