Skip to content

Instantly share code, notes, and snippets.

@NZKoz
Created August 18, 2013 21:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NZKoz/6264236 to your computer and use it in GitHub Desktop.
Save NZKoz/6264236 to your computer and use it in GitHub Desktop.
Koz-Prostyle-2:local michaelkoziarski$ brew upgrade git
==> Upgrading 1 outdated package, with result:
git 1.8.3.4
==> Upgrading git
git: No `python` found in your PATH! Consider to `brew install python`.
Error: An unsatisfied requirement failed this build.
Koz-Prostyle-2:local michaelkoziarski$ python
Python 2.7 (r27:82500, Jul 30 2010, 09:55:50)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Koz-Prostyle-2:local michaelkoziarski$ brew install python
Error: python-2.7 already installed
To install this version, first `brew unlink python'
@philadams-zz
Copy link

so... same issue. how did you fix it?

@kohmaeda
Copy link

I had this same problem. Some detective work revealed weirdness (even with a correct PATH):

$ which python
/usr/bin/python
$ brew install python
Warning: python-2.7.5 already installed
$ python --version
Python 2.7.1
$ brew link python
Warning: Already linked: /usr/local/Cellar/python/2.7.5

Yeah, weird.

$ brew unlink python
$ brew upgrade git
(snip)
$ brew install python
(snip)
$ which python
/usr/local/bin/python
$ which git
/usr/local/bin/git

I'm not sure how it got FUBAR like that in the first place, which is troubling, but everything seems to be working nicely for now.

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