错误类型为:RuntimeError: Python is not installed as a framework. The Mac OS X backend will....
解决方案:
vim ~/.matplotlib/matplotlibrc
然后输入以下内容:
backend: TkAgg
就可以使用了
本文介绍了一种解决Python在MacOSX环境下遇到的运行时错误的方法,通过修改matplotlib配置文件来更换后端,实现正常绘制图形的功能。
错误类型为:RuntimeError: Python is not installed as a framework. The Mac OS X backend will....
解决方案:
vim ~/.matplotlib/matplotlibrc
然后输入以下内容:
backend: TkAgg
就可以使用了

被折叠的 条评论
为什么被折叠?