Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to install the Python interface to the Redis key-value store.

I got the following error:

[shantanu@server andymccurdy-redis-py-60e3be5]$  python install
Traceback (most recent call last):
  File "", line 3, in ?
    from redis import __version__
  File "/home/shantanu/andymccurdy-redis-py-60e3be5/redis/", line 1, in ?
    from redis.client import Redis, StrictRedis
  File "/home/shantanu/andymccurdy-redis-py-60e3be5/redis/", line 238
    with self.pipeline(True, shard_hint) as pipe:
SyntaxError: invalid syntax

pip and easy_install did not work.

share|improve this question
Which Python version are you running python -V? – quanta Nov 10 '11 at 11:04
up vote 0 down vote accepted

Use the python version >=2.5 or try using an older version of redis-py for your python version.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.