我试图将Python接口安装到Redis键值存储区。
https://github.com/andymccurdy/redis-py
我得到了以下错误:
[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和easy_install无效。
发布于 2011-11-10 12:28:36
使用python版本的>=2.5,或者尝试在您的python版本中使用较早版本的redis-py。
https://serverfault.com/questions/329679
复制相似问题