Sitemap
Manas Das

Manas Das

A Thought Leader , Cloud and AI strategist

Update Cloud9 environment to Python 3.9

2 min readMar 4, 2024

AWS Cloud9 is a cloud-based IDE (integrated development environment) that allows to write, run, and debug the code with a browser. It combines the rich code editing features of an IDE such as coding , debugging with access to a full Linux server for running and storing code.

This is a tool popularly used by developers to develop their code and quickly deploy in AWS. One such popular programming language is Python which is widely used across industies.

Python 3.9 introduced enhanced features like improved time zone support, dictionary updates, and more flexible decorators. These features can significantly boost the efficiency and readability of code.

Below are the commands to quickly update your cloud9 environment to Python 3.9 .

Commands to update Cloud9 environment to Python 3.9

1) sudo yum -y update
2) sudo yum -y groupinstall development
3) sudo yum -y install zlib-devel openssl-devel

Get Manas Das’s stories in your inbox

Join Medium for free to get updates from this writer.

# Depends of python version you’re installing
4) wget https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz
5) tar xzf Python-3.9.5.tgz
6) cd Python-3.9.5

7) ./configure — enable-optimizations
8) make
9) sudo make altinstall
10) python3.9 -V
11) alias python=python3.9
12) echo ‘alias python=python3.9’ >> ~/.bashrc
13) source ~/.bashrc

14) python — version

# Make sure you also install boto3 under Python 3.9
15) python3.9 -m pip install boto3

Python switches to a yearly release cycle and major Python update brings a faster release schedule and improves performance.

I hope you find this article useful and if so then please share it with others who will also get benefited and please do reach out if any queries or any further information you need . Do let me know your thoughts.

About the Author
A Leader , Cloud Enthusiast , Passionate Learner and Cloud Solutions Architect .

--

--

Manas Das
Manas Das

Written by Manas Das

A Thought Leader , Cloud and AI strategist