I am using macos 10.14 and think I need to remove the 3.7 version of python from my path to compile an angular application. This is my result of echo $PATH
/Users/my_usrname/.nvm/versions/node/v10.15.3/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Wireshark.app/Contents/MacOS
I have uninstalled the 3.7 version, but I still have it in my path. This is how my .bash_profile looks like
# export PATH="/usr/local/sbin:$PATH"
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
# PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
# export PATH
# Setting PATH for Python 2.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" #This load$
As you can see I have uncommented the 3.7 version and this does not give the desired result. These are all the tricks I have read about from others to remove a python version from the path, but it didn't do it. Then I found something that seems to be relevant in .bash_profile.pysave
export PATH="/usr/local/sbin:$PATH"
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH
Should I remove/uncomment? Or replace this with 2.7 version? Is it safe? I'm not totally sure what I'm dealing with, but I have above avg computer skills. Any help would be appreciated.