install python3.6.1 on Amazon Linux ec2

version

$ cat /etc/issue
Amazon Linux AMI release 2016.09
Kernel \r on an \m



execute followings

sudo wget http://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
sudo tar zxvf Python-3.6.1.tgz
cd Python-3.6.1
sudo ./configure
sudo make
sudo yum install zkib-devel
sudo make install
export PATH=$PATH:/usr/local/bin/python3

コメント

人気の投稿