When I ran Homebrew's brew doctor
(Mac OS X 10.9.2), I get the following warning message:
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.
Therefore, I ran brew install
and followed the steps provided in the installation's caveats output to install Homebrew's version of Python. Running which python
confirms that Homebrew's version of it is indeed at the top of my PATH. Output is /usr/local/bin/python
.
Despite all this, when I rerun brew doctor
, I am still getting the same warning message. How do I suppress this warning? Do I need to delete the /Library/Frameworks/Python.framework directory from my computer? Am I just supposed to ignore it? Is there a different application on my computer that may be causing this warning to emit?
Note that I don't have any applications in particular that are running into errors due to this warning from brew doctor
. Also note that this warning message didn't always print out when I ran brew doctor
, it was something that started to appear recently. Also, I am using Python 2.7 on my computer, trying to stay away from Python 3.
I also received this message.
Something, sometime installed
on my machine (the folder date was about 4 years old).
I've chosen to remove it.
Please note that the Apple provided framework lives in
I had installed Python 3 from Homebrew and then another Python 3 directly from the Python website.
I deleted
/Library/Frameworks/Python.framework
. I did not add anyPATH
orPYTHONPATH
variables in.bash_profile
. Then I checked the following in the shell:In addition, I checked the following:
I was a bit worried that
whereis python3
,whereis pip
, andwhereis pip3
returned nothing, but since there was no problem launching Python, I'd think it's safe to delete/Library/Frameworks/Python.framework
. Ask me again in a month.I had the same problem. When I upgraded python3 through Homebrew, I started getting this:
I had the same conflict with Python somehow being installed in
/Library/Framework/Python.framework
. I just did abrew link overwrite
and everything is working fine now. There is some info about what to do with the Python version in the/Library/Framework/Python.framework
here.I guess you could try deleting that version as the link suggests, just make sure that version isn't being used. When I got into the Python.framework directory I was seeing some EPD version of Python, which I think is Enthought. You could delete it, but I if it isn't causing you any problems besides the unsightly Homebrew warning message, then I think you should just ignore it for now.
Update:
I did delete the Python.framework directory which, through some poking around inside that directory, I started seeing a few old versions of Python that I didn't install with Homebrew. One was from Enthought, and another was a distribution of Python3.3. I think some of these installs in the Framework directory are user installs. I installed R on my system, and there is also an R.framework directory, so I think most of these are user installs. After I deleted the directory, I just had to call brew prune to remove the old symlinks. I checked both brew versions of python 2.7.6 and 3.3.4, and they seem to be in good working order with all of my installed packages. I guess I leave the decision to remove that directory, or python version, to your discretion.
You can use this solution as I've put below
That combo fixed it for me, even thought this error usually doesn't cause any major problems its just was annoying me to see them pop up under brew doctor
Removing directories manually can be a nightmare, but fortunately 'brew' can take care of that. Once you are done with the removal, put this:
The above command will list the broken system links. In order to get rid of these broken symlinks, put this:
Check with 'brew doctor' once more to ensure no links are broken. Your system will then be ready to brew.
per this thread, enter this command:
sudo rm -rf /Library/Frameworks/Python.framework
because there are multiple installations of Python on your computer, and this removes the one that may cause additional problems in the future.