为了账号安全,请及时绑定邮箱和手机立即绑定

运行时错误:乳胶无法处理以下字符串:b'$1.0$'

运行时错误:乳胶无法处理以下字符串:b'$1.0$'

翻翻过去那场雪 2021-09-23 09:46:15
MCVE:import matplotlib.pyplot as pltfrom matplotlib import rcplt.rc('text', usetex = True)plt.plot([1.0, 2.0], [3.0, 4.0])plt.show()抛出的错误如标题所述:RuntimeError: latex is not able to process the following string:b'$1.0$'Here is the full report generated by latex:<Figure size 432x288 with 1 Axes>由于usetex设置设置为 ,会引发错误True。如果设置为False,则不会发生错误。我不知道为什么会发生这种情况,我认为(不确定)相同的代码在几周前可以正常工作。添加更多信息:代码在一行指出错误:exc=exc.output.decode('utf-8')))
查看完整描述

1 回答

?
九州编程

TA贡献1785条经验 获得超4个赞

重新安装 miktex 解决了该问题,但发生的原因尚不清楚。


查看完整回答
反对 回复 2021-09-23
  • 1 回答
  • 0 关注
  • 270 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号