Skip to content

Instantly share code, notes, and snippets.

@vadikgo
Last active May 29, 2022 09:58
Show Gist options
  • Save vadikgo/bdf22c309411b4290184b7f6b3d81671 to your computer and use it in GitHub Desktop.
Save vadikgo/bdf22c309411b4290184b7f6b3d81671 to your computer and use it in GitHub Desktop.
Install python 3.7 in CentOS 7
#!/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
@AzzySays
Copy link

its not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment