Skip to content

Instantly share code, notes, and snippets.

@wh13371
Last active September 9, 2019 10:33
Show Gist options
  • Save wh13371/15a46f029d32bfb9812950041d7f066b to your computer and use it in GitHub Desktop.
Save wh13371/15a46f029d32bfb9812950041d7f066b to your computer and use it in GitHub Desktop.
install Python 3.7.4 on CentOS 7
#!/bin/bash
###############################################################################
# basics
###############################################################################
yum -y install wget
###############################################################################
# python 3.7.4
###############################################################################
yum -y install gcc openssl-devel bzip2-devel libffi-devel
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
tar xzf Python-3.7.4.tgz
cd Python-3.7.4
./configure --enable-optimizations
make altinstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment