Last active
May 29, 2022 09:58
-
-
Save vadikgo/bdf22c309411b4290184b7f6b3d81671 to your computer and use it in GitHub Desktop.
Install python 3.7 in CentOS 7
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 | |
yum install gcc openssl-devel bzip2-devel libffi-devel make -y | |
curl https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz | tar -xzpvf - | |
mkdir -p /opt/python3 | |
cd Python-3.7.2 | |
./configure --enable-optimizations --prefix=/opt/python3 | |
make altinstall | |
/opt/python3/bin/python3.7 --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
its not working