
1.
问题描述:RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to funct…..
参考链接:https://www.cnblogs.com/harelion/p/5637767.html
解决方案:
pip安装matplotlib之后,会在根目录下产生一个.matplotlib的目录:
在这个目录下创建一个名为matplotlibrc的文件,内容是:
backend: TkAgg
然后保存退出,重启Python交互界面或重新运行脚本,import正常执行。
STO答案地址:http://stackoverflow.com/questions/21784641/installation-issue-with-matplotlib-python




近期评论