在 Kaggle 内核上使用 python 2.7

Use python 2.7 on Kaggle kernel

我是 Kaggle 内核的新手,我尝试在内核上使用我的代码。 我面临的唯一问题是我的脚本在 python 2.7 中,但内核支持 3.5.

有什么办法可以在内核上支持 python 2.7? 任何链接也会有帮助!

不幸的是,内核只支持Python 3.

ETA:如果您正在寻找托管笔记本环境,我刚刚检查过 Google Colab does support Python 2,所以如果您真的需要 2.7,我可能会检查一下。