mac导入matplotlib报错:python is not installed as a framework
2018-03-21 14:38
513 查看
版本:python3.6import 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.
解决方法:1. 当pip安装matplotlib后会存在目录: ~/.matplotlib 2. 在上面的目录下新建一个文件并添加内容 文件:~/.matplotlib/matplotlibrc 文本内容:backend: TkAgg3. 保存后重新执行导入即可解决
该问题在stackoverflow的页面:https://stackoverflow.com/questions/21784641/installation-issue-with-matplotlib-python
解决方法:1. 当pip安装matplotlib后会存在目录: ~/.matplotlib 2. 在上面的目录下新建一个文件并添加内容 文件:~/.matplotlib/matplotlibrc 文本内容:backend: TkAgg3. 保存后重新执行导入即可解决
该问题在stackoverflow的页面:https://stackoverflow.com/questions/21784641/installation-issue-with-matplotlib-python
相关文章推荐
- Mac使用Python Matplotlib报错:Python is not installed as a framework. The Mac OS X backend will not
- Python在Mac上运行matplotlib出错:RuntimeError: Python is not installed as a framework.解决办法
- Mac使用 matplotlib 画图 => RuntimeError: Python is not installed as a framework
- 解决python在本机Mac上出错:RuntimeError: Python is not installed as a framework.
- Python is not installed as a framework. The Mac OS X backend will not be a
- RuntimeError: Python is not installed as a framework
- Python图片处理PIL/pillow/生成验证码/出现KeyError: 和The _imagingft C module is not installed
- percona innobackupex 遇到 connect to MySQL server as DBD::mysql module is not installed 问题
- python apache下出现The _imaging C module is not installed
- The EntityFramework package is not installed on project
- Python: The _imagingft C module is not installed错误的解决
- Mac Error Create Android Project & HAX is not installed on this machine
- Python安装Imaging报错:The _imaging C module is not installed问题解决方法
- python3在pycharm中为什么导入random模块不能用? TypeError: 'module' object is not callable
- Mac下终端sudo命令错误的解决:sudo: effective uid is not 0, is sudo installed setuid root?
- Mac上HAX is not installed on this machine 的解决办法
- python__The _imaging C module is not installed
- the private key for is not installed on this mac
- Mac上HAX is not installed on this machine 的解决办法
- innobackupex: Error: Failed to connect to MySQL server as DBD::mysql module is not installed