python manage.py migrate出错

在建立Django项目过程中执行 python manage.py migrate命令,出现如下错误:

编辑D:\install files\python\Lib\functools.py(第56行):

1
2
convert = {
        '__lt__': [('__gt__', lambda self, other: other < self),

换成:

1
2
convert = {
        '__lt__': [('__gt__', lambda self, other: not (self < other or self == other)),

修改后运行正常:

 

posted @ 2017-07-18 23:10  Climber0702  阅读(749)  评论(0编辑  收藏  举报