for n_cluster in range(2, 11):
    kmeans = KMeans(n_clusters=n_cluster).fit(X)
label = kmeans.labels_
sil_coeff = silhouette_score(X, label, metric='euclidean')
Scikit Learn - K-Means - Elbow - criterion