Look where Python is installed.
Change the default python symlink to the version you want to use from above.
ln -s -f /usr/local/bin/python3.7 /usr/local/bin/python
Close the current terminal session or keep it that way and instead open a new terminal window.
Run this:
ls -l /usr/local/bin/python*
Note that, we only need to choose the one that ends with python3.*. Please avoid using the ones' that end with config or python3.*m or python3.*m-config.
Run this:
python --version
No comments:
Post a Comment