gpt4 book ai didi

python - brew doctor 产生 python 配置警告 : should I remove these config files? (Mac)

转载 作者:太空狗 更新时间:2023-10-30 00:19:42 24 4
gpt4 key购买 nike

Mac 似乎已经安装了 Python。 brew doctor 产生这个:

brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:

/Library/Frameworks/Python.framework/Versions/2.7/bin/python-config
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2-config
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config

我应该删除这些配置文件,否则会导致问题吗?对我来说:

> which python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python

还有:

$ ls /usr/bin/pyth*
-rwxr-xr-x 2 root wheel 62752 Aug 6 2011 /usr/bin/python*
-rwxr-xr-x 6 root wheel 925 Aug 6 2011 /usr/bin/python-config*
lrwxr-xr-x 1 root wheel 75 Aug 6 2011 /usr/bin/python2.5@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5
lrwxr-xr-x 1 root wheel 82 Aug 6 2011 /usr/bin/python2.5-config@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5-config
lrwxr-xr-x 1 root wheel 75 Aug 6 2011 /usr/bin/python2.6@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
lrwxr-xr-x 1 root wheel 82 Aug 6 2011 /usr/bin/python2.6-config@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config
lrwxr-xr-x 1 root wheel 75 Aug 6 2011 /usr/bin/python2.7@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 82 Aug 6 2011 /usr/bin/python2.7-config@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
-rwxr-xr-x 2 root wheel 62752 Aug 6 2011 /usr/bin/pythonw*
lrwxr-xr-x 1 root wheel 76 Aug 6 2011 /usr/bin/pythonw2.5@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw2.5
lrwxr-xr-x 1 root wheel 76 Aug 6 2011 /usr/bin/pythonw2.6@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pythonw2.6
lrwxr-xr-x 1 root wheel 76 Aug 6 2011 /usr/bin/pythonw2.7@ -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7

提前致谢。

最佳答案

Homebrew 主要使用内置工具,因此公式通常应该针对系统 Python 构建。除非你用 Homebrew 覆盖系统 Python,否则你不应该对它们有任何问题(除非你需要做一些特殊的事情,否则通常不推荐这样做)。

关于python - brew doctor 产生 python 配置警告 : should I remove these config files? (Mac),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18561966/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com