RuntimeError: Failed to process string with tex because latex could not be found的解决过程
之前用同样的代码画图从没有报过这个错,但是突然在某一次画图的时候报了错:Failed to process string with tex because latex could not be found。如果您不需要使用 Latex 处理字符串,您只需运行。没有改变任何环境配置,只是重启了一下电脑,很奇怪。
·
之前用同样的代码画图从没有报过这个错,但是突然在某一次画图的时候报了错:Failed to process string with tex because latex could not be found。
没有改变任何环境配置,只是重启了一下电脑,很奇怪。
解决方法:
如果您不需要使用 Latex 处理字符串,您只需运行
import matplotlib as plt
plt.style.use('default')
更多推荐
已为社区贡献1条内容
所有评论(0)