0

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

https://github.com/andymccurdy/redis-py

I got the following error:

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

pip and easy_install did not work.

1
  • Which Python version are you running python -V?
    – quanta
    Nov 10, 2011 at 11:04

1 Answer 1

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .