赞
踩
今天运行K均值聚类的练习时爆了如下错误:
File " ..\lib\site-packages\threadpoolctl.py", line 646, in get_version
config = get_config().split()
AttributeError: 'NoneType' object has no attribute 'split'
最终查找资料显示是threadpoolctl版本过低,需要升级threadpoolctl,接下来使用pip show threadpoolctl 查下来发现threadpoolctl版本是2.2。
然后使用pip install --upgrade threadpoolctl升级到最新版本后重启spyder代码运行成功
也可以参考如下链接安装threadpoolctl1:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。