如何在AWS Elastic-Beanstalk中更改我的python版本

时间:2019-02-20 19:14:34

标签: python node.js amazon-web-services aws-cli amazon-elastic-beanstalk

我正在使用Python 2在我的Elastic-Beanstalk中使用Node.js

如何更改为python3

我在cli和

中安装了python
  

sudo替代品--config python

将python更改为3,但系统崩溃了。

如何实现这一目标。

我需要在Elastic-Beanstalk中使用python3设置一个nodejs环境。现在使用python2。

1 个答案:

答案 0 :(得分:0)

我建议建立一个新环境,然后再交换环境网址

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.CNAMESwap.html

这要求您的数据库独立于当前环境。