我安装了pdflatex-full。
当我试图在Inkscape 1.1中使用LaTeX导出一个数学表达式(带有扩展-> Render ->数学-> 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由于我没有使用Python3.12(这个问题出现在Ubuntu22.04和22.10上),这个警告没有多大帮助,当我需要在Inkscape中生成许多LaTeX表达式时,这是非常恼人的。
如何压制这一警告?
发布于 2023-01-25 23:41:50
这个解决方法是基于这答案的。
打开文件/usr/share/inkscape/extensions/inkex/command.py,并在python os和system之后添加以下行。
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning) 重新启动Inkscape,问题就会消失(除非文件被Inkscape的未来更新重写)。
https://askubuntu.com/questions/1451862
复制相似问题