changing python path on mac?
PATH="/Library/Frameworks/Python.framework/Versions/3.1/bin:${PATH}"
export PATH
This will append the Python directory to the path.
If this is part of ~/.bash_profile
, this will append the Python path on each startup.
For those using a .zsh terminal instead of .bash, you might need to update your PATH using the command:
nano .zsh
Then update your PATH with the export command.
See the link below for more guide:
https://coolestguidesontheplanet.com/how-to-add-to-the-shell-path-in-macos-using-terminal/
try the below lines
cd /usr/local/bin
cp python3.7 python
Then restart terminal