Skip to content

cloudshell upgrade

0

i have check python version in my aws cloudshell it have 3.9.23 but i want now python version 3.11 is it any possible to upgrade 3.9 to 3.11? in case any posibility how to upgrade?

asked a year ago818 views

2 Answers
0
Accepted Answer

Yes, it's possible to install Python 3.11 alongside the default Python 3.9 in AWS CloudShell, which is based on Amazon Linux 2023.

AWS CloudShell comes with Python 3.9 as the system Python, which is accessible via /usr/bin/python3. This is the default version that will remain as Python 3.9 for the lifetime of Amazon Linux 2023.

To install Python 3.11, you can use the package manager. After installation, Python 3.11 will be available alongside Python 3.9, and you can access it specifically using python3.11.

If you want to make Python 3.11 the default when you run python3, you could technically modify the symbolic link, but this is generally not recommended as it might affect core functionality of the system. Instead, it's better to call python3.11 directly when you need that specific version.

Here's how you could install Python 3.11:

sudo yum install python3.11

After installation, you can verify it with:

python3.11 --version

You can then use pip for this specific version with:

python3.11 -m pip install [package-name]

Remember that AWS CloudShell provides 1 GB of persistent storage, so any installations you make will persist between sessions.
Sources
AWS CloudShell compute environment: specifications and software - AWS CloudShell
Browser-Based Shell – AWS CloudShell Features – AWS
Python in AL2023 - Amazon Linux 2023
Codecatalyst: problem when updating python 3.9 to 3.12 | AWS re:Post

answered a year ago

EXPERT

reviewed a year ago

0

now my question is after excute this commands done this is my cloudshell

python3.11 --version i get the 3.11.13 now i can install the starnds-agent on this 3.11 version how to execute which command i can give?

answered a year ago

  • To install the starnds-agent on Python 3.11.13, use pip:

    python3.11 -m pip install starnds-agent

    To verify the installation and run the agent (if it provides a CLI), try:

    starnds-agent --help

    or run it as a module (if documented):

    python3.11 -m starnds_agent

    Replace with the actual command if the documentation specifies a different entry point.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.