This repository has been archived by the owner. It is now read-only.

"A Python is installed" #27146

Closed
jillesme opened this Issue Mar 2, 2014 · 19 comments

Comments

Projects
None yet
@jillesme

jillesme commented Mar 2, 2014

Hey guys,

So I'm getting this error when brew doctor'in.. Google is no help either and I can't find anyone else with this issue.. What do I need to do the get brewin again?

Warning: A Python is installed in /Library/Frameworks

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.

Thanks!

screen shot 2014-03-02 at 23 51 47

@chdiza

This comment has been minimized.

Show comment
Hide comment
@chdiza

chdiza Mar 2, 2014

Contributor

You don't have to do anything. It's just a heads-up that the presence of that python might cause problems down the road, depending on what else you brew.

Contributor

chdiza commented Mar 2, 2014

You don't have to do anything. It's just a heads-up that the presence of that python might cause problems down the road, depending on what else you brew.

@jacknagel

This comment has been minimized.

Show comment
Hide comment
@jacknagel

jacknagel Mar 3, 2014

Contributor

Yep, it's just a warning; python installs in /Library tend to cause compilation issues when other software's build systems pick them up; for example, if the python is built for incompatible architectures.

It's not always the case, but having this in the brew dr output is a useful starting point for debugging.

Contributor

jacknagel commented Mar 3, 2014

Yep, it's just a warning; python installs in /Library tend to cause compilation issues when other software's build systems pick them up; for example, if the python is built for incompatible architectures.

It's not always the case, but having this in the brew dr output is a useful starting point for debugging.

@jacknagel jacknagel closed this Mar 3, 2014

@adamv

This comment has been minimized.

Show comment
Hide comment
@adamv

adamv Mar 3, 2014

Contributor

Off topic, but what font are you using in your terminal?

Contributor

adamv commented Mar 3, 2014

Off topic, but what font are you using in your terminal?

@jillesme

This comment has been minimized.

Show comment
Hide comment
@jillesme

jillesme Mar 3, 2014

@jacknagel Thanks! Is there any way I can remove that warning from brew doctor by 'fixing' it?
@adamv Source Code Pro!

jillesme commented Mar 3, 2014

@jacknagel Thanks! Is there any way I can remove that warning from brew doctor by 'fixing' it?
@adamv Source Code Pro!

@Dr-Radialist

This comment has been minimized.

Show comment
Hide comment
@Dr-Radialist

Dr-Radialist Mar 6, 2014

I have same problems. I understand that it is just a warning. However, could you tell me how I could delete the warning message when 'brew doctor'?

Dr-Radialist commented Mar 6, 2014

I have same problems. I understand that it is just a warning. However, could you tell me how I could delete the warning message when 'brew doctor'?

@adamv

This comment has been minimized.

Show comment
Hide comment
@adamv

adamv Mar 6, 2014

Contributor

To clear the warning, remove the Python from /Library/Frameworks/Python.framework.

(But don't actually remove it if something is using it.)

Contributor

adamv commented Mar 6, 2014

To clear the warning, remove the Python from /Library/Frameworks/Python.framework.

(But don't actually remove it if something is using it.)

@Dr-Radialist

This comment has been minimized.

Show comment
Hide comment
@Dr-Radialist

Dr-Radialist Mar 6, 2014

Thanks, I can brew now!

Dr-Radialist commented Mar 6, 2014

Thanks, I can brew now!

@ricksevans

This comment has been minimized.

Show comment
Hide comment
@ricksevans

ricksevans Mar 7, 2014

Would someone be so kind as to postulate (offer a likely story) about how this Python got into /Library/Frameworks/Python.framework? It is probably something I did... but I do not recall what I did.

ricksevans commented Mar 7, 2014

Would someone be so kind as to postulate (offer a likely story) about how this Python got into /Library/Frameworks/Python.framework? It is probably something I did... but I do not recall what I did.

@adamv

This comment has been minimized.

Show comment
Hide comment
@adamv

adamv Mar 7, 2014

Contributor

I think the official Python installer from the website may install here; Enthought may distribute a Python that goes here. Anything installed from a .pkg file may decide to put things in Frameworks though I don't know of any common thing that installs Python, but I have seen software put a version there in the past.

There are a few ways, and it's not always obvious the user that this happens.

Contributor

adamv commented Mar 7, 2014

I think the official Python installer from the website may install here; Enthought may distribute a Python that goes here. Anything installed from a .pkg file may decide to put things in Frameworks though I don't know of any common thing that installs Python, but I have seen software put a version there in the past.

There are a few ways, and it's not always obvious the user that this happens.

@ricksevans

This comment has been minimized.

Show comment
Hide comment
@ricksevans

ricksevans Mar 7, 2014

Thanks. I found a reasonable explanation here: http://docs.python.org/2/using/mac.html
Apparently I updated Python.

ricksevans commented Mar 7, 2014

Thanks. I found a reasonable explanation here: http://docs.python.org/2/using/mac.html
Apparently I updated Python.

@zedware

This comment has been minimized.

Show comment
Hide comment
@zedware

zedware Mar 7, 2014

So, is it a good choice to keep or remove the Apple provided Python? Thanks.

zedware commented Mar 7, 2014

So, is it a good choice to keep or remove the Apple provided Python? Thanks.

@adamv

This comment has been minimized.

Show comment
Hide comment
@adamv

adamv Mar 7, 2014

Contributor

The Apple provided Python is in /System/Library, not /Library, and should always be kept intact.

Contributor

adamv commented Mar 7, 2014

The Apple provided Python is in /System/Library, not /Library, and should always be kept intact.

@chdiza

This comment has been minimized.

Show comment
Hide comment
@chdiza

chdiza Mar 7, 2014

Contributor

If you don't brew Python and don't brew things that interact with Python, you will probably be fine leaving a /Library/Frameworks one there. I've done this for about 15 months now and have never had a problem. The catch is that you have to always be prepared to move that Python out of the way for testing purposes when a recalcitrant issue arises.

Just because this can be done under certain conditions doesn't mean it is wise to do it, however. If you don't have a good reason for keeping it, the wise thing is to remove it.

Contributor

chdiza commented Mar 7, 2014

If you don't brew Python and don't brew things that interact with Python, you will probably be fine leaving a /Library/Frameworks one there. I've done this for about 15 months now and have never had a problem. The catch is that you have to always be prepared to move that Python out of the way for testing purposes when a recalcitrant issue arises.

Just because this can be done under certain conditions doesn't mean it is wise to do it, however. If you don't have a good reason for keeping it, the wise thing is to remove it.

@tonyfazio

This comment has been minimized.

Show comment
Hide comment
@tonyfazio

tonyfazio Mar 13, 2014

How do you remove Python from /Library/Frameworks/Python.framework.

tonyfazio commented Mar 13, 2014

How do you remove Python from /Library/Frameworks/Python.framework.

@chdiza

This comment has been minimized.

Show comment
Hide comment
@chdiza

chdiza Mar 13, 2014

Contributor

How do you remove Python from /Library/Frameworks/Python.framework.

sudo rm -rf /Library/Frameworks/Python.framework

Contributor

chdiza commented Mar 13, 2014

How do you remove Python from /Library/Frameworks/Python.framework.

sudo rm -rf /Library/Frameworks/Python.framework

@tonyfazio

This comment has been minimized.

Show comment
Hide comment
@tonyfazio

tonyfazio Mar 14, 2014

Thanks chdiza!

tonyfazio commented Mar 14, 2014

Thanks chdiza!

@AndySoltani

This comment has been minimized.

Show comment
Hide comment
@AndySoltani

AndySoltani Mar 5, 2015

The comments here helped me remove python and fix my brew doctor errors! Thanks everyone!

AndySoltani commented Mar 5, 2015

The comments here helped me remove python and fix my brew doctor errors! Thanks everyone!

@HtwoO

This comment has been minimized.

Show comment
Hide comment
@HtwoO

HtwoO Jul 10, 2015

I currently have /Library/Frameworks/Python.framework, 3.4. I have system Python untouched. I have anaconda installed at $HOME/anaconda. I think it must had been installed by brew-cask. Because I did explicitly brew-cask install python3. Maybe I should report to the brew-cask team?

HtwoO commented Jul 10, 2015

I currently have /Library/Frameworks/Python.framework, 3.4. I have system Python untouched. I have anaconda installed at $HOME/anaconda. I think it must had been installed by brew-cask. Because I did explicitly brew-cask install python3. Maybe I should report to the brew-cask team?

@tdsmith

This comment has been minimized.

Show comment
Hide comment
@tdsmith

tdsmith Jul 10, 2015

Contributor

That is exactly what brew cask install python3 should do. Homebrew's warning is also correct.

Contributor

tdsmith commented Jul 10, 2015

That is exactly what brew cask install python3 should do. Homebrew's warning is also correct.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.