Python: Unable to Render Tex in Matplotlib

半腔热情 提交于 2019-11-27 04:28:48

The error message says you're missing the type1cm package. It seems that MacPorts includes it as part of texlive-latex-extra.

Matthijs Noordzij

On an Ubunutu 14.04 machine the combination of answers from above worked. I sudo apt-get install the dvipng,texlive-latex-extra, and texlive-fonts-recommended packages and that did the trick:

$ sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!