美文网首页Python应用集
Python运行`matplotlib`时报错:`Python

Python运行`matplotlib`时报错:`Python

作者: Solomon_Xie | 来源:发表于2019-01-11 00:49 被阅读2次

参考这篇回答
即使我的matplotlib是在virtualenv虚拟环境里安装的,它还是会在用户目录下生成一个~/.matplotlib目录。
然后我们在创建一个文件并填入一句话:

touch vim ~/.matplotlib/matplotlibrc
echo "backend: TkAgg" > ~/.matplotlib/matplotlibrc
image

相关文章

网友评论

    本文标题:Python运行`matplotlib`时报错:`Python

    本文链接:https://www.haomeiwen.com/subject/rnxirqtx.html