CentOSの6系のPythonを2系から3系(3.5)にしたかったのだが、
若干はまったのでメモ
yum install -y python35u python35u-libs python35u-devel python35u-pip
しようとしたら、yumがうごかなくなった
1 /etc/yum.repos.d/epel.repoを直す
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
↓
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
2 sed ~ をやる
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/epel.repo
sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
3 パッケージのインストール
yum install -y https://centos6.iuscommunity.org/ius-release.rpm
4 必要なもののインストール
yum install -y python35u python35u-libs python35u-devel python35u-pip
3系のインストールができた。
python3.5 -V
Python 3.5.2