Pythontex 错误,无法编译 python

Pythontex 错误,无法编译 python

我已完整安装 Texlive 2019 以及 Python 2.7 和 3.7 版本。我想编译以下简单项目,其中包含pythontex环境中的 python 命令。

\documentclass{article}
\usepackage{amsmath}
\usepackage{pythontex}

\begin{document}
\begin{pycode} 
print ('Hello, World')
\end{pycode}
\end{document}

我首先用 pdflatex 进行编译,当我运行pythontex test.texpython 命令时,我得到的错误是

C:\texlive\2019\bin\win32\runscript.tlu:931:
C:\texlive\2019\bin\win32\runscript.tlu:898: 
program not found (not part of TeX Live): python.exe

但我不知道 TexLive 或 Python 安装是否导致了此问题。我尝试更新 Texlive,但问题仍然存在。我还遵循了此主题中的说明:Pythontex 不起作用

相关内容