Linux虚拟机中yum安装python2.7(配合Cassandra使用)

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
发布了38 篇原创文章 · 获赞 46 · 访问量 1409

猜你喜欢

转载自blog.csdn.net/weixin_45568892/article/details/105576909
今日推荐