2 Answers
- Newest
- Most votes
- Most comments
3
What operating system does Cloud9 use?
Amazon Linux2 vagy Ubuntu?
I think a good way to upgrade is to add pyenv and switch from 3.7 to 3.9.
For example, if you are on Amazon Linux2, execute the following command.
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
cat << 'EOT' >> ~/.bashrc
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
EOT
source ~/.bashrc
sudo yum -y update
sudo yum -y install bzip2-devel
sudo yum -y install xz-devel
pyenv install 3.9.13
pyenv global 3.9.13
Also, since Cloud9 seems to have a Python alias set by default, please set the following command in "~/.bash_profile".
export PATH="$HOME/.pyenv/shims:$PATH"
You can confirm that the version changes by executing the following command after setting.
source ~/.bash_profile
python --version
0
I always upgrade with ...
wget https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tgz
tar -xf Python-3.9.9.tgz
cd Python-3.9.9
./configure --enable-optimizations
sudo make altinstall
answered a year ago
Relevant content
- asked 2 years ago
- asked a year ago
- Accepted Answerasked 7 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
Thanks, this worked for me. I ran "pip3.9 install boto3" on top before I could start using it..