我在安装 Yellowbrick 时遇到问题。
我正在使用 Anaconda,因此我利用了“conda install”。
# set number of clusters
kclusters = 5
pittsburgh_grouped_clustering = pittsburgh_grouped.drop('Neighborhood', 1)
X = pittsburgh_grouped.drop('Neighborhood', 1)
from sklearn.cluster import KMeans
!conda install -c districtdatalabs yellowbrick
from yellowbrick.cluster import KElbowVisualizer
# instantiate the model and visualizer
model = KMeans()
visualizer = KElbowVisualizer(model, k=(1,10))
visualizer.fit(X) # fit data to visualizer
visualizer.poof() # draw/show/poof the data
我希望安装包。我收到的错误消息是:
ModuleNotFoundError:没有名为“yellowbrick”的模块。
我错过了什么?