【发布时间】:2015-10-01 02:45:39
【问题描述】:
我已经使用 pkg 安装程序安装了 Anaconda:
Python 2.7.10 |Continuum Analytics, Inc.| (default, May 28 2015, 17:04:42)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
但是当我尝试使用 matplotlib 中的任何东西时,即:
from matplotlib import 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.
我真的不确定这意味着什么,或者如何解决它。
【问题讨论】:
-
我想你的问题在stackoverflow.com/questions/4130355/…得到了回答
-
这篇文章让我陷入了困境,但它让我遇到了使用 Homebrew、Macports 和其他软件产生的冲突。我不得不编辑我的 bash_profile——之前使用过 Homebrew 和 MacPorts,我的 $PATH 声明是冲突的。删除这些条目后,matplot lib 工作正常。我确定我在一些旧代码中的某个地方破坏了某些东西,但 Anaconda 似乎是我一直追求的 Python 的实现。
标签: python macos matplotlib anaconda