数星星的小贝壳 2018-01-19 10:04 采纳率: 0%
浏览 3283
已结题

Mac系统上import matplotlib.pyplot as plt出现下面问题

RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of 'python' with 'pythonw'. See 'Working with Matplotlib on OSX' in the Matplotlib FAQ for more information.

matplotlib这个模块我是通过pycharm直接安装的,运行在venv里,没有装AnaConda

  • 写回答

2条回答 默认 最新

  • qq_27280869 2018-01-19 12:04
    关注

    终端中执行:_vim ~/.matplotlib/matplotlibrc_
    输入:_backend: TkAgg_

    评论

报告相同问题?