Skip to content

Instantly share code, notes, and snippets.

@peterorum
Last active January 9, 2019 20:59
Show Gist options
  • Save peterorum/3ca4cba5fbe6619c0e96 to your computer and use it in GitHub Desktop.
Save peterorum/3ca4cba5fbe6619c0e96 to your computer and use it in GitHub Desktop.
Install python3 on EC2
wget https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tgz
tar zxvf Python-3.4.2.tgz
cd Python-3.4.2
sudo yum install gcc
./configure --prefix=/opt/python3
make
sudo make install
sudo ln -s /opt/python3/bin/python3 /usr/bin/python3
sudo ln -s /opt/python3/bin/easy_install-3.4 /usr/bin/easy_install3
sudo ln -s /opt/python3/bin/pip3 /usr/bin/pip3.4
sudo ln -s /opt/python3/bin/pydoc3 /usr/bin/pydoc3
sudo ln -s /opt/python3/bin/pyenv /usr/bin/pyenv3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment