I just used brew to install Python 3 on OS X. The python3
command now starts the interpreter using brew Python 3.6, but python
still opens the interpr
One-liner to get homebrew python working:
zsh
echo -n 'export PATH="/usr/local/opt/python/libexec/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
bash
echo -n 'export PATH="/usr/local/opt/python/libexec/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
Explanation:
>> filename
appends at the end of the file
source filename
reloads the file