Last active
September 9, 2019 10:33
-
-
Save wh13371/15a46f029d32bfb9812950041d7f066b to your computer and use it in GitHub Desktop.
install Python 3.7.4 on 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/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