How to Install Python-Redis on Ubuntu 15.04

Share Button

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 install

Getting Started

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

Source : Here

Share Button