解决方式:将~/anaconda3/lib/python3.7/site-packages/conda/models/version.py中
这一行
version_relation_re = re.compile(r'(==|!=|<=|>=|<|>)(?![=<>!])(\S+)$')
改成version_relation_re = re.compile(r'(==|!=|<=|>=|<|>|=)(?![=<>!])(\S+)$')
这两行opdict = {'==': op.__eq__, '!=': op.__ne__, '<=': op.__le__,
'>=': op.__ge__, '<': op.__lt__, '>': op.__gt__}
改成opdict = {'==': op.__eq__, '!=': op.__ne__, '<=': op.__le__, '=': lambda x, y: x.startswith(y),
'>=': op.__ge__, '<': op.__lt__, '>': op.__gt__}
标签:__,.__,gt,re,version,2.7,spec,op
From: https://www.cnblogs.com/owlowl/p/17879853.html