在窗户中安装乳胶,以便您可以在Anaconda环境中使用

发布于 2025-02-14 01:27:52 字数 555 浏览 1 评论 0原文

我正在尝试在数字中使用乳胶字体。我正在使用此命令:

plt.rcParams['text.usetex'] = True

我会收到以下错误:

 latex was not able to process the following string:
b'lp'

似乎我在Windows计算机上缺少乳胶分发。

我尝试使用此处找到的建议来解决:

matplotlib错误:乳胶无法处理以下字符串:'lp'

但是,所有解决方案可用于Ubuntu而且我无法在WSL上使用它。

有什么建议吗?

I am trying to use latex fonts in my figures. I am using this command:

plt.rcParams['text.usetex'] = True

I get the following error:

 latex was not able to process the following string:
b'lp'

It seems like I am lacking a latex distribution on my windows computer.

I tried to solve using the suggestions found here:

Matplotlib Error: LaTeX was not able to process the following string: 'lp'

However, all the solutionsonly work for Ubuntu and I was not able to make it work on WSL.

Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文