Skip to content

Instantly share code, notes, and snippets.

@lashex
Last active February 3, 2018 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save lashex/407a6d33a3e1911e9f2b to your computer and use it in GitHub Desktop.
Save lashex/407a6d33a3e1911e9f2b to your computer and use it in GitHub Desktop.
Install Python 3.4 on Amazon Linux 2014.09
sudo yum install gcc
sudo yum install zlib-devel
sudo yum install openssl-devel
sudo yum install bzip2-devel
sudo yum install readline-devel
wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz
tar -xvf Python-3.4.1.tgz
cd Python-3.4.1/
sudo ./configure --prefix=/opt/python3
sudo make
sudo make install
export PATH=$PATH:/opt/python3/bin
./python3
# pip3 resides in /opt/python3/bin/
pip3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment