我安装了pdflatex-full
。
当我尝试在 Inkscape 1.1 中使用 LaTeX 导出数学表达式时(使用Extension -> Render -> Mathematics -> LaTeX (pdflatex)),我收到以下警告消息。
/usr/share/inkscape/extensions/inkex/command.py:73: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.spawn import find_executable
由于我没有使用 Python 3.12(这个问题出现在 Ubuntu 22.04 和 22.10 上),这个警告没有多大帮助,当我需要在 Inkscape 中生成许多 LaTeX 表达式时,它非常烦人。
如何抑制这个警告?
此解决方法基于此答案。
打开文件
/usr/share/inkscape/extensions/inkex/command.py
,在 python importsos
和system
.重新启动 Inkscape,问题应该消失了(除非文件被 Inkscape 的未来更新重写)。