Skip to content Skip to sidebar Skip to footer

Trying To Install Python3 But Terminal Keeps Showing As Python 2.7.13

I have 2.7.13 on macOS Sierra and I'm trying to upgrade to python3 via brew install python3 everything seems to have went fine except the last part: ==> Installing python3 ==&

Solution 1:

Python 2.x and Python 3.x have different terminal commands.

Use command : python3 to use python 3.x

Similarly, use pip3 for installing python modules.


Note : Also try to learn virtualenv (virtual environments), so that you can keep your python 2.x and python 3.x environments separate.

There are many tutorials to do this, one such is this tutorial.

Post a Comment for "Trying To Install Python3 But Terminal Keeps Showing As Python 2.7.13"