错误:UserWarning: KMeans is known to have a memory leak on Windows with MKL, when there are less chunks than available threads. You can avoid it by setting the environment variable OMP_NUM_THREADS=1.
解决方法:在py文件的开头添加
import os
os.environ["OMP_NUM_THREADS"] = '1'