RuntimeError: Failed to process string with tex because [latex]()could not be found

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、解决方法

安装latexdvipng

pip install latex
sudo apt-get install dvipng
sudo apt-get install -y texlive texlive-latex-extra texlive-latex-recommended texlive-fonts-recommended

安装latex时,不要用condapip

3、参考

RuntimeError: Failed to process string with tex because latex could not be found_MaXuwl的博客-CSDN博客

猜你喜欢

转载自blog.csdn.net/weixin_37950717/article/details/125221901