Without having access to your machine, it's very hard for me to know.
The first thing to look at is the PATH env var: https://www.bitecode.dev/p/environment-variables-for-beginners
But with homebrew, it can be many things.
oof - that's messier than I expected:
echo $PATH >>
/opt/homebrew/bin
/Library/Frameworks/Python.framework/Versions/3.11/bin
/opt/homebrew/sbin
/usr/local/bin
/System/Cryptexes/App/usr/bin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/MacGPG2/bin
/Library/Frameworks/Mono.framework/Versions/Current/Commands
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
/usr/local/bin/python3
Without having access to your machine, it's very hard for me to know.
The first thing to look at is the PATH env var: https://www.bitecode.dev/p/environment-variables-for-beginners
But with homebrew, it can be many things.
oof - that's messier than I expected:
echo $PATH >>
/opt/homebrew/bin
/Library/Frameworks/Python.framework/Versions/3.11/bin
/opt/homebrew/bin
/opt/homebrew/sbin
/usr/local/bin
/System/Cryptexes/App/usr/bin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/MacGPG2/bin
/Library/Frameworks/Mono.framework/Versions/Current/Commands
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
/usr/local/bin/python3