Install libreoffice-script-provider-python by entering the following commands in the terminal:
sudo apt update sudo apt install libreoffice-script-provider-python
Description:
Python script support provider for LibreOffice scripting framework
LibreOffice is a full-featured office productivity suite that provides a near drop-in replacement for Microsoft(R) Office. . The Scripting Framework allows LibreOffice users to write and run macros in multiple languages including LibreOffice Basic, Python, Java, BeanShell and JavaScript. These macros can then be assigned to menus, toolbars, keyboard shortcuts, events and embedded objects. . This package contains the script provider to support Python.
Homepage: http://www.libreoffice.org
Version: 1:6.0.3-0ubuntu1
Section: universe/python