1.通过pip进行安装

命令:pip install redis

截图:

p1.png

2.验证安装是否成功

命令:

python

import redis

redis.VERSION

截图:

p2.png

QQ截图20181109145112.png