使用Kmeans时意外出现的错误:OSError: [WinError -1066598274] Windows Error 0xc06d007e

       

        借鉴以下文章,但是没能解决问题:
【-1066598274 (0xC06D007E)】解决matplotlib版本冲突问题_process finished with exit code -1066598274 (0xc06-CSDN博客

        在重新安装matplotlib时有错误:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
gensim 4.3.0 requires FuzzyTM>=0.4.0, which is not installed.
numba 0.56.4 requires numpy<1.24,>=1.18, but you have numpy 1.26.1 which is incompatible.

        单独安装  gensim 和 numba:

pip install gensim
pip install numba

        但问题仍然存在,依旧报错:
OSError: [WinError -1066598274] Windows Error 0xc06d007e

        问题应该还是适配性的问题,使用conda命令进行安装:

conda install matplotlib

        出现一个RemoveError:

RemoveError: 'setuptools' is a dependency of conda and cannot be removed from
conda's operating environment.

        借鉴以下文章解决问题:

RemoveError: ‘setuptools‘ is a dependency of conda and cannot be removed from conda‘s operating envi-CSDN博客

        卸载setuptools

pip uninstall setuptools

        再更新conda

conda update --force conda

        最后重新安装

conda install setuptools

        显示successfully,再运行程序,报错解决。

PS:我并不清楚问题到底出在哪,因为我之前是能够正常运行的,但下午打开时突然就无法运行了,估计重装setuptools应该就能解决问题。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值