Install python-parted by entering the following commands in the terminal:
sudo apt update sudo apt install python-parted
Description:
Python interface for libparted
pyparted is a set of Python modules that provide Python programmers an interface to libparted (http://www.gnu.org/software/parted), the GNU parted library for disk partitioning and file system manipulation. . This package contains Python extension itself.
Homepage: https://github.com/dcantrell/pyparted
Version: 3.11.1-1ubuntu2
Section: universe/python