解决方法: 版本不匹配,改成项目的版本 或者: 把 from torch._six import string_classes, int_classes 改成: int_classes = int string_classes = str