python:ImportError: cannot import name 'b':错误解决方法

python:ImportError: cannot import name ‘b’:错误解决方法
在安装rediscluster时,使用pip install rediscluster,遇到了ImportError: cannot import name 'b’的错误。
解决方法:
先了解一下rediscluster包的概念,
1,redis包更准确地说是redis-py包,是Python连接Redis的驱动文件,如果下载原始文件的话,文件名称就是redis-py-***.tar.gz
2,rediscluster 包更准确地说是redis-py-cluster包,是Python连接Redis Cluster(Redis集群)的驱动文件
3,rediscluster包依赖于redis包,也就是说rediscluster包连接Redis集群的时候需要依赖redis包
于是,访问镜像源:https://pypi.tuna.tsinghua.edu.cn/simple/redis-py-cluster/
python:ImportError: cannot import name 'b':错误解决方法
于是,使用命令
pip install redis-py-cluster==1.3.6
安装rediscluster成功