Unable to install unoconv on Amazon Sagemaker

421 Views Asked by At

I need to convert some miscellaneous files (pptx, xlsx, dox) to PDFs, and I need to do it on Linux. I found that "good way" to do this is using the unoconv package.

The problem is that when I try to do sudo yum install unoconv it tells me that

Loaded plugins: dkms-build-requires, priorities, update-motd, upgrade-helper, versionlock
No package unoconv available.
Error: Nothing to do

How can I add the package to the available ones from command line?

the distro is:

NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
1

There are 1 best solutions below

0
Lennart Regebro On

Unoconv is installed with pip:

python -m pip install unoconv

It's absolutely essential that you are running that command with the same Python executable as LibreOffice is using, or it won't work, as unoconv needs the LibreOffice libraries to run.