Steps to setup Step1: Get ubuntu EC2 running Step 2: Setup SSH key pair via AWS console and move the .pem file to ~/ssh Change the permission of pem file to chmod 400 <file> Step 3: SSH to EC2 Follow this good documentation for PIP install and other python version if you needed https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-linux.html Make sure to export ~/.local/bin path