安装stringtemplate3 for python

2024-09-22 16:27:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试运行Python/cminus示例。 从http://pypi.python.org/pypi/stringtemplate3/3.1开始,我用sudo python setup.py install为python安装了stringtemplate3。在

当我跑的时候cminus.py从这个代码开始。在

import sys
import antlr3
import stringtemplate3

我有错误。在

^{pr2}$

看起来stringtemplate3使用的是antlr而不是antlr3。在

我如何解决这个问题?在


Tags: install代码pyorgimportpypihttp示例