Ticker

6/recent/ticker-posts

install python3.8 on AWS cloudshell

 When i was working on one of the use case where i needed to install python3.8 on AWS cloudshell, i noted down all the steps and thought to put in blog for quick reference in the future.

For the people who don't know what is AWS Cloudshell, It is basically a browser-based, pre-authenticated shell that you can launch directly from the AWS Management Console. You can run AWS CLI commands against AWS services using your preferred shell (Bash, PowerShell, or Z shell). And you can do this without needing to download or install command line tools.


When you launch AWS CloudShell, a compute environment that's based on Amazon Linux 2 is created. Within this environment, you've access to an extensive range of pre-installed development tools, options for uploading and downloading files, and file storage that persists between sessions.

You launch AWS CloudShell from the AWS Management Console, and the AWS credentials you used to sign in to the console are automatically available in a new shell session. This pre-authentication of AWS CloudShell users allows you to skip configuring credentials when interacting with AWS services using AWS CLI version 2 (pre-installed on the shell's compute environment).

AWS CloudShell you have persistent storage of 1 GB for each AWS Region at no additional cost.

The persistent storage is located in your home directory ($HOME) and is private to you. Unlike ephemeral environment resources that are recycled after each shell session ends, data in your home directory persists between sessions.

AWS CloudShell is an AWS service that's available at no additional charge.

Here are the following list of command that can help you to install python3.8 on your AWS cloudshell environment.

$python --version
$which python
$ll /usr/bin/python
$cd /usr/bin
$ll | grep python
$cat /etc/os-release
$sudo yum list installed | grep python
$sudo amazon-linux-extras install python3.8
$ll | grep python
$sudo ln -sf /usr/bin/python3.8 python
$python --version
$ll | grep python

OR

$sudo rm /usr/bin/python  (which is only a link to /usr/bin/python2.7)
$sudo ln -s /usr/bin/python3.8 /usr/bin/python



Post a Comment

0 Comments