ImportError: cannot import name 'b'

ImportError: cannot import name 'b'

错误来源

使用pip3安装rediscluster模块时产生

解决方案

需要注意如果需要通过第三方模块操作rediscluster,你需要下载的东西是redis-py-cluster,而不是直接根据rediscluster这个命名下载

可以前往清华的镜像源查看版本,然后下载自己想要https://pypi.tuna.tsinghua.edu.cn/simple/redis-py-cluster/

pip install redis-py-cluster==any version you want
posted @ 2020-10-28 21:34  -拂石-  阅读(364)  评论(0)    收藏  举报