按照这篇文章方法操作:
pip install latex
sudo apt-get install dvipng
sudo apt-get install -y texlive texlive-latex-extra texlive-latex-recommended
之后,又提示错误:
RuntimeError: latex was not able to process the following string: b‘lp‘
继续安装:
sudo apt install texlive-latex-base
pip3 --default-timeout=100 install -U pdflatex
sudo apt-get install cm-super
下面这篇文章的方法没试:
pip install latex
conda install -c conda-forge jupyter_latex_envs
conda install -c conda-forge/label/cf201901 jupyter_latex_envs
conda install -c conda-forge/label/cf202003 jupyter_latex_envs