How to Install Python-Redis on Ubuntu 15.04

Install Python-Redis in Ubuntu 15.04

To install redis-py, simply:

sudo pip install redis

or alternatively (you really should be using pip though):

sudo easy_install redis

or from source:

sudo python setup.py install

Getting Started

import redis
r = redis.StrictRedis(host='localhost', port=6379, db=0)
r.set('foo', 'bar')
   True
r.get('foo')
   'bar'

Source : Here

previous article

Leave a Reply