2013-09-01 7 views
6

Mac sembra avere già installato Python. brew doctor produce questo:brew doctor restituisce avviso config python: dovrei rimuovere questi file di configurazione? (Mac)

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 

Devo rimuovere questi file di configurazione o causare problemi? Per me:

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

anche:

$ 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/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5 
lrwxr-xr-x 1 root wheel  82 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5-config 
lrwxr-xr-x 1 root wheel  75 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 
lrwxr-xr-x 1 root wheel  82 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config 
lrwxr-xr-x 1 root wheel  75 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 
lrwxr-xr-x 1 root wheel  82 Aug 6 2011 /usr/bin/[email protected] -> ../../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/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw2.5 
lrwxr-xr-x 1 root wheel  76 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pythonw2.6 
lrwxr-xr-x 1 root wheel  76 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7 

Grazie in anticipo.

risposta

0

Homebrew utilizza principalmente strumenti integrati, quindi le formule in genere devono essere costruite comunque con il sistema Python. Non dovresti avere alcun problema con loro a meno che tu non sostituisca il sistema Python con quelli Homebrew (che in genere non è raccomandato a meno che tu non debba fare qualcosa di speciale).

+0

"che in genere non è raccomandato a meno che non sia necessario fare qualcosa di speciale" -> Non c'è niente di sbagliato nell'installazione di Python di Homebrew; è più aggiornato di quello del sistema. – bfontaine

+1

@bfontaine Le cose sono cambiate un po 'dal 2013. La linea era accurata al momento, ma Homebrew ha cambiato le loro politiche un po' e ora offre un sacco di formule che duplicano le librerie di sistema. – uranusjr

0

Non è stato un problema per me (la maggior parte delle mie configurazioni sono a casa mia, piuttosto che in homebrew). Penso che vada bene. Finché sono sul tuo percorso, python sarà in grado di trovarli; l'unico problema sarebbe da un pacchetto o programma che si desidera installare con brew che ha bisogno di modificare quei file di configurazione. Potrebbe succedere, ma probabilmente non dovrebbe con programmi ben sviluppati.

Problemi correlati