1.通过pip进行安装

命令:pip install redis

截图:

2.验证安装是否成功

命令:

python

import redis

redis.VERSION

截图: