参考这篇回答。
即使我的matplotlib是在virtualenv虚拟环境里安装的,它还是会在用户目录下生成一个~/.matplotlib
目录。
然后我们在创建一个文件并填入一句话:
touch vim ~/.matplotlib/matplotlibrc
echo "backend: TkAgg" > ~/.matplotlib/matplotlibrc
image
参考这篇回答。
即使我的matplotlib是在virtualenv虚拟环境里安装的,它还是会在用户目录下生成一个~/.matplotlib
目录。
然后我们在创建一个文件并填入一句话:
touch vim ~/.matplotlib/matplotlibrc
echo "backend: TkAgg" > ~/.matplotlib/matplotlibrc
image
本文标题:Python运行`matplotlib`时报错:`Python
本文链接:https://www.haomeiwen.com/subject/rnxirqtx.html
网友评论