Skip to content

Instantly share code, notes, and snippets.

@basilmusa
Created November 13, 2019 15:29
Show Gist options
  • Save basilmusa/17398a6553e98f7dec7ed771b9cb5d59 to your computer and use it in GitHub Desktop.
Save basilmusa/17398a6553e98f7dec7ed771b9cb5d59 to your computer and use it in GitHub Desktop.
Install awscli in an isolated environment on Ubuntu
apt-get update
apt-get install python3-pip
apt-get install python3-venv
# Upgrade pip to latest version
python3 -m pip install --upgrade pip
# Manually check upgrade worked
pip --version
# Prepare AWS CLI
mkdir /opt/awscli
cd /opt/awscli
# Create and activate venv
python3 -m venv venv_dir
source /opt/awscli/venv_dir/bin/activate
# Upgrade pip used in the venv enviroment
pip install --upgrade pip
# Install awscli
pip install awscli --upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment