- Newest
- Most votes
- Most comments
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
now my question is
after excute this commands done
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
Relevant content
asked 3 years ago

To install the
starnds-agenton Python 3.11.13, usepip:To verify the installation and run the agent (if it provides a CLI), try:
or run it as a module (if documented):
Replace with the actual command if the documentation specifies a different entry point.