深入解析ARM9 SoC LH7A404:嵌入式系统设计与实战经验
2026/6/20 0:06:02
pip3 install pydub pip3 install loguru pip3 install pandassudo apt updatesudo apt install -y python3-lxmlpip3 install python-docx --no-deps👉 因为:
python-docx本身是纯 Python
依赖只有lxml
我们已经提前解决了lxml
如果这台 sophon 机器允许装软件,直接:
sudo apt install -y libreoffice或者精简一点(只要转 PDF):
sudo apt install -y libreoffice-writer验证:
which libreoffice libreoffice --versionports.ubuntu.com在国内基本必慢,
必须换成清华 / 阿里 / 中科大 ARM ports 镜像。
sudo cp /etc/apt/sources.list /etc/apt/sources.list.baksudo nano /etc/apt/sources.list全部替换为:
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main universe multiverse restricted deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main universe multiverse restricted deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-security main universe multiverse restricted保存退出。
sudo apt clean sudo apt update sudo apt install -y libreoffice-writer⚠️强烈建议用
libreoffice-writer,别装全家桶 libreoffice
转 docx → pdf只需要 writer
体积小很多(但还是不小)
👉 一般会从kB/s → MB/s
解压目录下的字体
unzip SourceHanSansSC.zipsudo mkdir -p /usr/share/fonts/source-han-sans sudo cp SourceHanSansSC/*.otf /usr/share/fonts/source-han-sans/sudo fc-cache -fvfc-list | grep "Source Han Sans"