matplotlib: RuntimeError: Python is not installed as a framework

前端 未结 6 2201
情深已故
情深已故 2020-12-23 14:04

This question has been asked before, in here, also here. However, the solution didn\'t fix the problem for my case.

The original error is, when I try to impor

6条回答
  •  悲&欢浪女
    2020-12-23 14:33

    Below worked for me:

    import matplotlib  
    matplotlib.use('TkAgg')   
    import matplotlib.pyplot as plt  
    

    Reference: https://github.com/tensorflow/tensorflow/issues/2375

提交回复
热议问题