Best Answer · By JanBask Python Expert
Answered on Mar 2, 2021
You can use the below-mentioned command:-
cd /usr/local/bin/
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | awk '{print $9}' | tr -d @ | xargs rm
Was this helpful?