Homebrew: Python version is still 2.7.4 after installing homebrew

I installed Python using homebrew. which python returns /usr/local/bin/python , which should be a homebrew installation if I'm not mistaken. When I run python , I get

 Python 2.7.4 (v2.7.4:026ee0057e2d, Apr 6 2013, 11:43:10) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin 

which tells me that I'm still on version 2.7.4, not 2.7.5. If I then run brew upgrade python , I get Error: python-2.7.5 already installed .

Can someone help me figure out what's going on here?

+4
source share
1 answer

I think I found the answer in a similar question . I was able to use @akauppi's answer to fix my problem. I assume that the symlink in / usr / bin / local / pointed to system python or maybe another older version that I have on my system somewhere instead of the version installed by Homebrew. By running brew link --overwrite python , I was able to replace those old symbolic links, and now I am showing version 2.7.5 when I start python .

+3
source

Source: https://habr.com/ru/post/1495225/


All Articles