from sklearn.cluster import AgglomerativeClustering这个包是真实的import scipy.cluster.hierarchy as sch这个包是虚假的(坑。。)建议使用上面这个