Install Python:
cd $HOME
sudo apt install python3.9
Verify that Python is installed correctly: python3.9 --version
.
Run this: sudo apt install python3.9-dev
.
Check pip is not already installed: python3.9 -m pip --version
.
Download pip: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
.
Install pip: python3.9 get-pip.py
.
In case of ModuleNotFoundError: No module named 'distutils.util'
error, run sudo apt-get install python3-distutils
and retry python3.9 get-pip.py
.
Add the executable path, /path-to-home/.local/bin
, to your PATH variable in .bashrc
file:
export PATH=$PATH:/path-to-home/.local/bin
source .bashrc
echo $PATH
Verify that pip is installed correctly:
which pip3.9
pip3.9 --version
Remove the useless file: rm get-pip.py
Use pip to install the EB CLI: pip3.9 install awsebcli --upgrade --user
Verify that the EB CLI is installed correctly: eb --version
To upgrade to the latest version, run the installation command again: pip3.9 install awsebcli --upgrade --user