After setting matplotlib.rcParams["text.usetex"] = True in Python, the matplotlib.pyplot.savefig command raises
OSError: [Errno 2] No such file or directory: '/home/my_name/cmr9
I believe this follows a manual TexLive installation following the procedure suggested here.
I am using the agg back-end.
Adding the directory containing TeXLive binaries to the PATH environment variable using os.environ did not solve the issue.
/opt/texbinto thePATHenvironment variable in the/etc/environmentfile, and symlinked the TeXLive binary directory. – M. Toya Jun 16 '16 at 12:20