Last active
April 3, 2019 14:13
-
-
Save miztiik/6fb3c69fd5d78b5ecc3a0cb8825d48df to your computer and use it in GitHub Desktop.
This file contains 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
yum -y install epel-release deltarpm wget \ | |
&& yum -y update \ | |
&& yum -y install net-tools bind-utils zip git | |
# Setup the Repo for Python 3 | |
yum -y install https://centos7.iuscommunity.org/ius-release.rpm | |
yum -y install python36u | |
yum -y install python36u-pip | |
python3.6 -V | |
# Install pip & AWS CLI | |
pip3.6 install --upgrade pip \ | |
&& pip3.6 install awscli --upgrade --user \ | |
&& pip3.6 install boto3 | |
# If necessary set the path | |
# export PATH=~/.local/bin:$PATH | |
# export PS1='\[[\e[0;36m\]\u:\[\e[0;35m\]\W\[\e[0m\]]# ' | |
## Refresh bash profile | |
source ~/.bash_profile | |
# Prepping - Amzn Linux 2 with Python 3 | |
# sudo amazon-linux-extras install python3 | |
####################################################### | |
# Work-In-Progress | |
####################################################### | |
# Setup Python3.7 | |
yum install gcc openssl-devel bzip2-devel libffi libffi-devel | |
cd /usr/src | |
curl -O https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz | |
tar xzf Python-3.7.2.tgz | |
cd Python-3.7.2 | |
./configure --enable-optimizations | |
make altinstall | |
python3.7 -V | |
rm /usr/src/Python-3.7.2.tgz | |
# Setup Python3.7 as default in bash profile | |
alias pip='pip3.7' | |
alias python='python3.7' | |
# Install pip | |
curl https://bootstrap.pypa.io/get-pip.py | python3.7 | |
pip --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment