python - Homebrew brew doctor 警告关于/Library/Frameworks/Python.framework,即使安装了 brew 的 Python

标签 python macos python-2.7 homebrew brew-doctor

当我运行 Homebrew's brew doctor (Mac OS X 10.9.2) 时,我收到以下警告消息:

Warning: Python is installed at /Library/Frameworks/Python.framework

Homebrew only supports building against the System-provided Python or a brewed Python. In particular, Pythons installed to /Library can interfere with other software installs.

因此,我运行 brew install 并按照安装警告输出中提供的步骤安装 Homebrew 的 Python 版本。运行 which python 确认 Homebrew 的版本确实在我的 PATH 的顶部。输出是 /usr/local/bin/python.

尽管如此,当我重新运行 brew doctor 时,我仍然收到 相同的警告消息。如何抑制此警告?我需要从我的计算机中删除/Library/Frameworks/Python.framework 目录吗?我只是应该忽略它吗?我的计算机上是否有其他应用程序可能导致发出此警告?

请注意,由于 brew doctor 的警告,我没有任何应用程序特别会遇到错误。另请注意,当我运行 brew doctor 时,此警告消息并不总是打印出来,它是最近开始出现的。另外,我在我的电脑上使用 Python 2.7,试图远离 Python 3。

最佳答案

我也收到了这条消息。

某些东西,有时会安装

/Library/Frameworks/Python.framework

在我的机器上(文件夹日期大约是 4 年前)。

我已选择删除它。

请注意,Apple 提供的框架位于

/System/Library/Frameworks/Python.framework/

关于python - Homebrew brew doctor 警告关于/Library/Frameworks/Python.framework,即使安装了 brew 的 Python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22255579/

相关文章:

python - sqlalchemy+sqlite 去除带点的列名?

python - 从 PayPal 应用程序检索所有付款信息

python - Pandas 对 DataFrame 行中的值进行排名

python - 在 C 和 NumPy 数组中的数据缓冲区之间进行转换,为 Python 接口(interface)包装 C 程序的最佳方法?

python - 是否有等效的方法从 XML 加载 GMenu?

python - 一旦 python 脚本从终端 (Ctrl-C) 停止,如何释放 Ubuntu 内存?

macos - 在没有终端的情况下在 osx 上启动 node.js

macos - 为什么 ORSSerialPort 接收委托(delegate)在我的 Swift 项目中不起作用

swift - 验证后强制 cocoa 绑定(bind)更新(快速)

python - 流派和类型过滤器在 Soundcloud API 中不起作用?