thsheep / scrapy_redis_cluster

scrapy-redis的集群版,可以借助Redis集群实现海量网站的独立去重,避免单机内存不足的尴尬
138 stars 41 forks source link

ImportError: cannot import name 'b' #3

Closed Songdongdong6 closed 5 years ago

Songdongdong6 commented 5 years ago

您好,我是个新手,我在运行的时候总是出现这个问题 File "c:\users\sdd\appdata\local\programs\python\python36\lib\site-packages\rediscluster\nodemanager.py", line 12, in from redis._compat import b, unicode, bytes, long, basestring ImportError: cannot import name 'b' 您能帮忙看看怎么回事吗,谢谢

thsheep commented 5 years ago

我测试了一下 没有这个报错

试试重新安装 redis-py

pip install -U redis