参考
https://stackoverflow.com/questions/52277264/convert-doc-to-docx-using-soffice-not-working
安装
yum remove openoffice* libreoffice*
yum install libreoffice*
执行命令
soffice --headless --convert-to docx teste.doc
python调用
#!/usr/bin/env python
# coding:utf-8
import subprocess
output = subprocess.check_output(["soffice","--headless","--invisible","--convert-to","docx","/home/requiem/workspace/python3/test.doc","--outdir","/home/requiem/workspace/python3/"])