1、报错
使用matplotlib
调用latex
生成pdf
时报错
RuntimeError: Failed to process string with tex because [latex](https://so.csdn.net/so/search?q=latex&spm=1001.2101.3001.7020) could not be found
2、解决方法
安装latex
和dvipng
pip install latex
sudo apt-get install dvipng
sudo apt-get install -y texlive texlive-latex-extra texlive-latex-recommended texlive-fonts-recommended
安装latex
时,不要用conda
用pip
3、参考
RuntimeError: Failed to process string with tex because latex could not be found_MaXuwl的博客-CSDN博客