Trying to install python3 with brew install python3
. Prior to this I have added and sourced the ~/.zshrc file (created by me, it was absent by default) containing:
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"
(OR)
export PATH=/usr/local/bin:$PATH
But the output of which python3
is always /opt/homebrew/bin/python3
. I would like to have the output as /usr/local/bin/python3
Immediately after the installation of brew I ran the following commands as it was instructed in the terminal
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
I also tried uninstalling brew and then a fresh installation followed by not running the above commands but the output of which python3
is same