PureDevOps Community

For MAC ( including BigSur ) how to switch to python 3

I tried many approaches to set python3 as default version and all the options were not working and the only working solution is

  1. brew install python
  2. in your bashrc or zshrc add export PATH=/usr/local/opt/python3/libexec/bin:$PATH
  3. source bashrc/zshrc

try python --version it should do the magic.

1 Like