Centos7安装python3

使用 python 操作 redis
安装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-release
yum 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

posted on 2018-07-15 18:54  qq575654643  阅读(87)  评论(0编辑  收藏  举报