Created
November 13, 2019 15:29
-
-
Save basilmusa/17398a6553e98f7dec7ed771b9cb5d59 to your computer and use it in GitHub Desktop.
Install awscli in an isolated environment on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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