美文网首页
虚拟环境无法使用matplotlib问题

虚拟环境无法使用matplotlib问题

作者: 思而忧 | 来源:发表于2017-08-22 14:29 被阅读0次

    在python虚拟环境下直接使用matplotlib会报错

    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的后会新建一个文件夹~/.matplotlib。

    在该文件夹里面新建一个matplotlibrc文件,往里面写:
    backend: TkAgg

    相关文章

      网友评论

          本文标题:虚拟环境无法使用matplotlib问题

          本文链接:https://www.haomeiwen.com/subject/zxlldxtx.html