mac 安装matplotlib后执行程序报错
来源:互联网 发布:凯迪社区 知乎 编辑:程序博客网 时间:2024/05/29 11:14
执行程序后报错:
Traceback (most recent call last): File "/Users/bojie.hbj/my_project/XXXX/XXX.py", line 4, in <module> import matplotlib.pyplot as plt File "/Users/bojie.hbj/my_project/XXXXX/XXXX/env/lib/python2.7/site-packages/matplotlib/pyplot.py", line 115, in <module> _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup() File "/Users/bojie.hbj/my_project/XXX/XXXX/env/lib/python2.7/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup globals(),locals(),[backend_name],0) File "/Users/bojie.hbj/my_project/XXX/XXX/env/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 19, in <module> from matplotlib.backends import _macosxRuntimeError: 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.
处理方法 控制台输入以下内容:
echo backend: TkAgg > ~/.matplotlib/matplotlibrc
0 0
- mac 安装matplotlib后执行程序报错
- matplotlib 命令行执行报错
- Mac下安装from matplotlib import pyplot或者 import matplotlib.pyplot as plt报错
- 安装atlas后执行hive命令报错
- Mac matplotlib安装
- centos安装matplotlib报错的解决办法
- matplotlib Mac OS 安装过程
- InstallShield中安装后执行指定程序
- 完成安装后执行某些程序
- mac安装pymssql报错
- Mac安装MySql报错
- mac os 中 pycharm 中安装matplotlib后不能正常使用
- Python安装时import matplotlib.pyplot as plt报错
- Python安装时import matplotlib.pyplot as plt报错
- pip 安装matplotlib报错 png can not be built
- Mac安装nltk后在python 3的IDLE中import nltk报错
- 安装项目在执行后执行一个第三方程序
- mac 安装omyzsh后不执行~/.bash_profile、~/.bashrc解决办法
- linux改字符集改出来的问题
- java的环境搭建
- vtk各个模块作用、数据流,工作原理
- Android系统广播大全
- 商品展示问题
- mac 安装matplotlib后执行程序报错
- Linux命令索引
- 多任务学习
- 【studio导入module遇到问题一】:Gradle build-info.xml not found for moudle..Please make sure..gradle plugin
- 367. Valid Perfect Square
- 基础数论学习笔记-----------拓展欧几里得算法【Extended Euclidean Algorithm】
- codeves天梯 津津的储蓄计划
- If
- 线程安全 synchronize关键字