在安装matplotlib时候,本来简简单单的安装一下就可以了,但意外的是碰到了3个问题,也在网上找了一会,但答案五花八门也未能解决,差不过研究了整整一天,始终无法运行。
1:由于不能运行matplotlib,所以使用 pip uninstall matplotlib,但发现卸载失败,后来到site-packages里面看到有~mat开头的在(具体名称忘记了),手动去删除提示被占用,哪怕用管理员权限也不行,电脑重启后删除成功
2:再次安装后,提示是安装成功,但运行时候显示 “ImportError: DLL load failed while importing _cext: 找不到指定的模块”问题。
解决方法:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple msvc-runtime
3:上面代码输入后,运行,又出现Could not install packages due to an OSError: [WinError 5] 拒绝访问的问题。
解决办法:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple msvc-runtime --trusted-host pypi.tuna.tsinghua.edu.cn --user
,也碰到了“Cannot create consistent method ordering”问题。。总算找到了
只可惜问题已经解决,当初图片也已经忘记截取。希望对碰到该类问题的人有所帮助。