1. Report an error
Error when using matplotlib
call latex
generationpdf
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. Solution
Install latex
anddvipng
pip install latex
sudo apt-get install dvipng
sudo apt-get install -y texlive texlive-latex-extra texlive-latex-recommended texlive-fonts-recommended
When installing latex
, do not conda
usepip
3, reference
RuntimeError: Failed to process string with tex because latex could not be found_MaXuwl的博客-CSDN博客