赞
踩
正常使用zadd报错
r = redis.StrictRedis(host=xxxxx)
d = dict()
d['1231'] = 123
r.zadd(d)
redisError: ZADD requires an equal number of values and scores
python版本:3.6.1
在另外一个环境3.6.5,运行代码,正常。 说明是版本问题。
于是在自己的windows机器装了 anaconda-5.3.0,问题得以解决。
windows不能使用pyenv,这点不好。。官网上都明确说明了。。
推荐使用anaconda,指定版本的下载地址如下:
https://repo.continuum.io/archive/
卸载之前版本记得保留自己之前安装过的包:
pip freeze > requirement.txt
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。