用matplotlib画图总是会报“RuntimeError: latex was not able to process the following string: b‘lp‘”这个错误,找了好久才找到解决办法。在此记录一下。
[学习链接](RuntimeError: latex was not able to process the following string: b‘lp‘-CSDN博客)
解决办法:把下面的这些都安装一遍
sudo apt install texlive-latex-base
pip3 --default-timeout=100 install -U pdflatex
pip3 install latex
sudo apt-get install dvipng
sudo apt-get install texlive-latex-extra texlive-fonts-recommended dvipng
sudo apt-get install cm-super