借鉴以下文章,但是没能解决问题:
【-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.
借鉴以下文章解决问题:
pip uninstall setuptools
再更新conda
conda update --force conda
最后重新安装
conda install setuptools
显示successfully,再运行程序,报错解决。
PS:我并不清楚问题到底出在哪,因为我之前是能够正常运行的,但下午打开时突然就无法运行了,估计重装setuptools应该就能解决问题。