我维护了一个由python2.7开发的项目
现在,我想使用 codecommit、codebuild 和 cloudformation 服务分发项目。
我运行了一个完美使用python3.8运行环境的demo,
但是如果我把环境改成python2.7,
它无法正常运行。
所以,我想知道 aws codebuild 还支持 python2.7 吗?
答案 0 :(得分:2)
它不支持 2.7。支持的运行时在 here 中列出。对于 python,你只有 3.7、3.8 和 3.9。
您可以在任何 linux CodeBuild 映像中“手动”安装 python 2.7 并在您的构建项目中使用它。或者您可以创建一个 custom image。