Installing AWS Elastic Beanstalk CLI


In order to install the awsebcli package on Cloud9, there are a few steps that are currently required. This is going to be a quick run through of the commands needed to be run.

If you want to install using python 2


sudo apt-get update
sudo apt-get install python2.7-dev -y

Update pip

If you’re using Python 2 run:

sudo pip install --upgrade pip

For Python 3:

sudo pip3 install --upgrade pip

Install Elastic Beanstalk CLI

For Python 2:

pip install --upgrade --user awsebcli

For Python 3:

pip3 install --upgrade --user awsebcli

Adding to path

Add the following line at the end of ~/.profile

export PATH=~/.local/bin:$PATH


I wasn’t able to get the above code to work :frowning:. But, I did find this response that was able to get the AWS CLI working in my Ruby Rails environment! Unfortunately, I’m too new to offer why the one worked, and the other didn’t.

sudo apt-get install python3.4
sudo apt-get update && sudo apt-get install -y python-pip libpython-dev python-dev
sudo pip install awscli --upgrade


if you still can’t successfully init eb with “eb init” trying loading your profile script like AWS’ docs recommend

$ source ~/.profile
Load the profile script described in the first step into your current session. The following example loads the profile script represented by PROFILE_SCRIPT into your current session.