使用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 found2、解决方法
安装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博客


![RuntimeError: Failed to process string with tex because [latex]()could not be found RuntimeError: Failed to process string with tex because [latex]()could not be found](http://www.mshxw.com/aiimages/31/960616.png)
