Reputation: 2133
I'm fairly new to Python, but I assume that I need to point something to the new version of python in order to have my system know there is a new version installed. I'm on macOS 10.13.6 and installed the newest python with Homebrew's command brew install python
. Any help would be greatly appreciated.
I've tried following this tutorial, but I'm stuck at the portion "ensure PATH....", as it tends to lose me:
# Do I have a Python 3 installed?
$ python --version
Python 3.6.4 # Success!
# If you still see 2.7 ensure in PATH /usr/local/bin/ takes precedence over /usr/bin/
Upvotes: 3
Views: 1082
Reputation: 396
Try python3 --version
.
Usually you need to add 3 on the end to anything you do with Python in the terminal.
Upvotes: 2