MacOS编译错误:Package minted Error: You must have `pygmentize' installed to use this package #26
-
使用平台详情
编译日志报错内容 [点击打开]
文件结构问题描述在macos上编译发现的一个问题,参考解决方案:https://tex.stackexchange.com/questions/48018/minted-not-working-on-mac 其他信息 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
That's correct! To utilize the Please note that the Overleaf project is integrated with |
Beta Was this translation helpful? Give feedback.
-
I understand what you're saying. Could you share with me the version of macOS you're currently using, the version of TeX Live you have installed, and the method you employed to install |
Beta Was this translation helpful? Give feedback.
-
I think I understand what you mean, but personally I don't think this is a bug. The minted package does indirectly use Please let me know if I understood the issue and your intended meaning correctly. |
Beta Was this translation helpful? Give feedback.
你好,
谢谢你能够提出这个 issue,让我们了解到文档中缺少了
pygmentize
的相关说明。但我认为这并不是一个常见的问题,因为我和 @skyleaworlder 在我们的 Macbook 上都没有遇到过这个问题,编译都非常顺利。问题可能出在你没有将 Python 或
pygmentize
的路径加入环境变量PATH
中,导致与minted
相关的部分无法编译。你所提到的解决方法:
其实也是把
pygmentize
的安装路径移到了已经包括在环境变量的路径中(/usr/local/bin
默认是包括在环境变量中的!),这样系统才能找到并正确使用pygmentize
,从而解决了问题。我们已经在 README.md 中更新了关于安装 Python 和
pygmentize
相关步骤的说明。@skyleaworlder 之前回复你时也已经提到了这个问题: