pyuicfg command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pyuicfg: command not found
or when using sudo you get the following error message
sudo: pyuicfg: command not found
Solutions to pyuicfg: command not found
How To Fix pyuicfg: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pyuicfg is provided by python3-pyqt-distutils package.
python3-pyqt-distutils is:
A set of distutils extension to work with PyQt applications and UI files.
The goal of this tiny library is to help you write PyQt application in a pythonic way, using setup.py to build the Qt designer Ui files.
This works with PyQt4, PyQt5 and PySide (tested with python3 only).
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-pyqt-distutils
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-pyqt-distutils.
sudo apt -y install python3-pyqt-distutils
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-pyqt-distutils
Summary
In this tutorial we learn how to fix pyuicfg command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.