Created
May 13, 2022 15:52
-
-
Save xcsrz/15c3d2509db3aada0d7c16bfb5b95f33 to your computer and use it in GitHub Desktop.
Install Python 3.9 on CentOS or Amazon Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel | |
cd /tmp | |
wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz | |
tar -xvf Python-3.9.6.tgz | |
cd Python-3.9.6 | |
./configure --enable-optimizations | |
sudo make altinstall | |
python3.9 --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment