当我运行 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/