My problem is that when I check the python3
version I get 3.6.0 but when I install python3
with HomeBrew
it tells me that I have python 3.6.3
. installed. How do I get my computer to tell me that I have python 3.6.3
when I use the python3 --version
command? As you can see in the image, that is the problem that I have, how do I fix it?
python3: stable 3.6.3 (bottled), devel 3.7.0a3, HEAD
Interpreted, interactive, object-oriented programming language
https://www.python.org/
/usr/local/Cellar/python3/3.5.2_3 (7,720 files, 109.4MB)
Built from source on 2016-11-14 at 18:24:57
/usr/local/Cellar/python3/3.6.3 (7,973 files, 111MB)
Built from source on 2017-12-15 at 10:26:40
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/python3.rb
After I typed `brew info python3' then I got the output that you see in the above image.
wireless-10-105-105-109:~ johnhsu$ echo $PATH
/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/local/sbin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
' Also when I checked what path i have, this is what I got. Which looks very different than what it is supposed to look like, maybe?
When I enter a command which python3 it does this.
Johns-Air:~ johnhsu$ which python3
/Library/Frameworks/Python.framework/Versions/3.6/bin/python3
However, when I use 'brew info python3', it gives me this:
/usr/local/Cellar/python3/3.5.2_3 (7,720 files, 109.4MB)
Built from source on 2016-11-14 at 18:24:57
/usr/local/Cellar/python3/3.6.3 (7,973 files, 111MB) *
Built from source on 2017-12-15 at 10:26:40