Anaconda Runtime Error: Python is not installed as a framework?

前端 未结 10 1784
时光取名叫无心
时光取名叫无心 2020-12-24 05:53

I\'ve installed Anaconda with the pkg installer:

Python 2.7.10 |Continuum Analytics, Inc.| (default, May 28 2015, 17:04:42) 
[GCC 4.2.1 (Apple Inc. build 557         


        
10条回答
  •  没有蜡笔的小新
    2020-12-24 06:15

    If the problem is only matplotlib, is worth try to change the backend:

    import matplotlib
    matplotlib.use('TkAgg')
    import matplotlib.pyplot as plt
    
    plt.plot([1, 2, 3], [4, 5, 6])
    plt.show()
    

    If it works you can change the backend permanently from the matplotlibrc file.

提交回复
热议问题