GBDT icon indicating copy to clipboard operation
GBDT copied to clipboard

python2.7 运行startup.py 失败

Open gothion opened this issue 8 years ago • 3 comments

下面是详细的错误信息 class RegressionLossFunction(metaclass=abc.ABCMeta): ^ SyntaxError: invalid syntax

gothion avatar Oct 08 '16 10:10 gothion

only support python3+

liudragonfly avatar Oct 09 '16 03:10 liudragonfly

ok,建议在redme里面加上这条说明。另外,能不能支持python2呢?主要是为了用metaclass 的特性才只支持python3的吗?

gothion avatar Oct 09 '16 07:10 gothion

python2跟python3的元类(metaclass)语法不一样,修改一下同样支持。

liudragonfly avatar Oct 10 '16 02:10 liudragonfly