Linux虚拟机中yum安装python2.7(配合Cassandra使用)
1 下载 ius-release.rpm包
wget https://centos6.iuscommunity.org/ius-release.rpm
2 安装ius-release.rpm包
rpm -Uvh ius-release.rpm
3 安装python27版本
yum install python27 python27-devel python27-pip
4 修改pip源
cd ~
mkdir .pip
cd .pip
vi pip.conf
pip.conf 中写入如下内容
[global]
index-url=http://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn