RuntimeError: Python is not installed as a framework. Mac下使用Matplotlib报错
使用为python环境导致的 使用虚拟环境以别导入matplotlib中的内容会报错 需要先导入再设置一下
import matplotlib
matplotlib.use('TkAgg')
from matplotlib import pyplot as plt
或是添加设置到文件中
vi ~/.matplotlib/matplotlibrc
backend: TkAgg
官...
原创
2018-11-11 11:20:31 ·
361 阅读 ·
0 评论