diff --git a/ipyrad/analysis/pca.py b/ipyrad/analysis/pca.py
index <HASH>..<HASH> 100644
--- a/ipyrad/analysis/pca.py
+++ b/ipyrad/analysis/pca.py
@@ -34,7 +34,7 @@ try:
     from sklearn.cluster import KMeans
     from sklearn.manifold import TSNE
     from sklearn.linear_model import LinearRegression
-    from sklearn.neighbors.nearest_centroid import NearestCentroid   
+    from sklearn.neighbors import NearestCentroid   
 except ImportError:
     pass
fix for new sklearn warning