1. 异常描述
RuntimeError: Failed to process string with tex because latex could not be found
RuntimeError: Failed to process string with tex because dvipng could not be found
2. 异常原因
latex 没有安装
dvipng 没有安装
3. 解决方法
pip install latex
sudo apt-get install dvipng
sudo apt-get install -y texlive texlive-latex-extra texlive-latex-recommended
4. 参考链接
- latex用conda一直没有安装成功,用pip一次就行了。
- 解决dvipng: https://stackoverflow.com/questions/27668288/dvipng-not-found-when-creating-matplotlib-figure
- 解决latex: https://github.com/tanghaibao/jcvi/issues/160
4. 有用请点赞,谢谢!
1. 点赞,积分+1
2. 评论,积分+1
其他
conda install jupyter_latex_envs
conda install -c conda-forge jupyter_latex_envs