My terminal path in macOS SIerra is messed up
The system's standard path (configured in /etc/paths) is /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin. If you want to add an additional path like /Library/Frameworks/Python.framework/Versions/3.6/bin to your user's PATH permanently you have to include the old $PATH in the export PATH line - either at the end or at the beginning - in your .bash_profile file:


export PATH="new_path:$PATH"
export PATH="$PATH:new_path"


Additionally your PATH contains some unwanted characters like ’ or ? and doesn't have a closing quote ".



Open Terminal and enter:

/usr/bin/nano ~/.bash_profile


Change the line

export PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:’/usr/local/bin:??...


to

export PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:$PATH"


If the file contains another line with export PATH="..." squeeze the required parts into the above line.

Save the mod with ctrlO and quit nano with ctrlX

Quit and relaunch Terminal and enter echo $PATH which should reveal at least:

/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin