RuntimeError: [latex]() が見つからなかったため、tex を使用した文字列の処理に失敗しました

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: latex が見つからなかったため、tex を使用した文字列の処理に失敗しました_MaXuwl の博客-CSDN 博客

おすすめ

転載: blog.csdn.net/weixin_37950717/article/details/125221901