如题,在python中使用matplotlib模块出现“DLL load failed while importing _cext: 找不到指定的模块”报错,可以先确认 Python 和 matplotlib 的版本兼容性,或者重新安装 matplotlib,当然更多的情况还是需要更新或安装 Visual C++ 可再发行组件包:
安装步骤:
1、打开链接:
Latest supported Visual C++ Redistributable downloads | Microsoft Learn
2、找到
Latest Microsoft Visual C++ Redistributable Version
3、点击下载:
4、安装完成后重启代码运行即可