Skip to content
Related Articles

Related Articles

How to Install Python-pmw package on Ubuntu?

View Discussion
Improve Article
Save Article
  • Last Updated : 31 Jan, 2022

Pmw is a toolkit for building high-level compound widgets, or mega widgets, constructed using other widgets as component parts. It promotes a consistent look and feel within and between graphical applications, is highly configurable to your needs, and is easy to use. In this article, we will be looking at the stepwise procedure to install the Python-Pmw for Python in Linux. 

Installing Python-Pmw for Python on Linux

Follow the below steps to install Python Python-Pmw in Linux:

Step 1: Check if Python is installed or not on your system. Here, we run the below command in the terminal of the Linux to check if the Python is already installed in the system or not. In case Python is already installed on your system then the output will be the current version of Python and if it is not installed it will throw an error. For installing python in your system, refer to How to Install Python.

python3.9 –version

Checking-if-Python-is-installed-or-not

Step 2: This step is to update the Linux used by the user to get the latest version so that it can make the process much faster and the system updates will make the installing easily without facing any issue.

sudo apt-get update

Update-the-Linux

Step 3: Install the Python-Pmw. Here, it is the final step to install the Python-Pmw in python just the user needs to type the below-mentioned command in the working Linux terminal and the Python-Pmw will be successfully installed in the system.

sudo pip3 install pmw

or 

sudo apt-get install python-pmw

Install-the-Python-Pmw

Verifying Python-Pmw installation on Linux

For ensuring the installation of Python-Pmw on our system, we can use the following import command in the Python terminal. If there is an error while importing the module then it means it is not installed properly.

import Pmw

Verifying-Python-Pmw-installation

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!