报错解决——ImportError: cannot import name ‘container_abcs‘ from ‘torch._six‘ (/home/csj/anaconda3/envs/p

from torch._six import container_abcs, string_classes, int_classes

改成:

string_classes = str
int_classes = int
import collections.abc as container_abcs

你可能感兴趣的:(报错解决,pytorch,人工智能,python)