python读取redis数据

1、首先下载redis-py (The Python interface to the Redis key-value store)     https://github.com/andymccurdy/redis-py

2、配置 首先 启动 redis并保持开启状态  然后 cmd 指向 redis-py存放的位置

 

命令:Python setup.py install

python读取redis数据

将redis-py这个路径加入系统环境变量,这样python就能识别了,我将"D:\tools\redis-py-2.10.5",加入了系统path,在eclipse中操作redis成功了,这样就不用每次在cmd那黑框框中输入了python读取redis数据

转载于:https://my.oschina.net/lylyg/blog/694116