Last active
February 3, 2018 08:55
-
-
Save lashex/407a6d33a3e1911e9f2b to your computer and use it in GitHub Desktop.
Install Python 3.4 on Amazon Linux 2014.09
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
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