DEV Community

yosi
yosi

Posted on

Set Python3 as a default on MacOS

Download the and install the latest stable release from python.org

To set the release as default -

sudo ln -s -f /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 /usr/local/bin/python
Enter fullscreen mode Exit fullscreen mode

To check it worked, open a new terminal window and run

python --version
Enter fullscreen mode Exit fullscreen mode

You'll get -

Python 3.10.0
Enter fullscreen mode Exit fullscreen mode

Happy coding! 🚀

Top comments (0)