WeA*_*ems 4 python macos matplotlib pycharm
我可以通过终端运行代码并使用图表弹出matplotlib窗口但不通过Pycharm.我得到的只是一个错误说:
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.
Run Code Online (Sandbox Code Playgroud)
我不确定如何安装Python作为框架或真正意味着什么.我已经google了,但我不想弄乱我的系统.
有人可以提供至少我应该尝试做什么或谷歌周围的解决方案.
对不起,如果我缺乏一些技术语言/知识来解释这个问题.谢谢
如果使用pip或conda安装matplotlib,则应该有一个目录~/.matplotlib
.
在该目录内创建或打开(如果已存在)一个名为的文件matplotlibrc
.
要使TkAgg成为默认后端,只需添加该行即可 backend: TkAgg
归档时间: |
|
查看次数: |
4460 次 |
最近记录: |