Install python-pathlib2 by entering the following commands in the terminal:
sudo apt update sudo apt install python-pathlib2
Description:
Backport of the "pathlib" stdlib module (Python 2)
The old pathlib module on bitbucket is in bugfix-only mode. The goal of pathlib2 is to provide a backport of standard pathlib module which tracks the standard library module, so all the newest features of the standard pathlib can be used also on older Python versions. . This package is (obviously) for Python 2.
Homepage: https://pypi.python.org/pypi/pathlib2
Version: 2.3.0-1
Section: universe/python