今天在pycharm上用matplotlib画图,但是出现以下错误:

上网查了一下,发现是有一个环境变量没有配置,在系统环境变量里面添加一个 QT_PLUGIN_PATH 的变量,变量值为D:\anaconda\pkgs\qt-5.9.7-vc14h73c81de_0\Library\plugins,我的anaconda是安装在D盘,如果安装在别的目录下,改一下就好了。

参考:
https://blog.csdn.net/tudianlu9350/article/details/
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/223996.html原文链接:https://javaforall.net
