我已经通过
安装了LaTexpip install latex
并从此处运行Mactex安装程序:https://tug.org/mactex/mactex-download.html
但是当我尝试使用Python通过Python构建时,我收到此错误消息:
Traceback (most recent call last):
File "write_case_insert_from_json.py", line 341, in <module>
output_pdf_filename)
File "trace_case_insert.py", line 245, in compile_tex_into_pdf
pdf = latex.build_pdf(open(tex_filename))
File "/Library/Python/2.7/site-packages/latex/build.py", line 234, in build_pdf
raise RuntimeError('No available builder could be instantiated. '
RuntimeError: No available builder could be instantiated. Please make sure LaTeX is installed.
为什么Python找不到tex?我做错了什么?提前谢谢!