安装easy_install
yum install python-setuptools -y
使用easy_install安装redis
easy_install redis
测试
import redis
r = redis.Redis(host='192.168.0.154',port=16379)
r.keys()
参照: https://www.cnblogs.com/clover-siyecao/p/5600078.html
Centos7安装python3
sudo yum install epel-releaseyum install python34 -y
yum install python34-setuptools -y
yum install python34-pip -y #不是最新
pip3 install --upgrade pip
pip3 install redis
或
easy_install-3.4 pip
easy_install-3.4 redis
yum install ipython -y
或
easy_install-3.4 ipython