Ich habe es gemacht, weil ich Python für die Sache wollte, dass Pidora auf RaspberryPi installiert wurde.
Dies ist ein Bash-Skript. Fügen Sie nach Bedarf weitere Funktionen hinzu.
install_python
#!/usr/bin/env bash
VERSION=3.6.0
yum groupinstall "Development tools" -y
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel -y
cd /opt/
curl -O https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tgz
tar zxf Python-${VERSION}.tgz
cd Python-${VERSION}
./configure --prefix=/opt/local
make && make altinstall
http://qiita.com/a_yasui/items/5f453297855791ed648d
Recommended Posts