-
-
Save munhitsu/1034761 to your computer and use it in GitHub Desktop.
sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7 | |
sudo rm -rf "/Applications/Python 2.7" | |
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | cut -d " " -f 18 | xargs -IM sudo rm /usr/local/bin/M | |
echo based on http://stackoverflow.com/questions/3819449/how-to-uninstall-python-2-7-on-a-mac-os-x-10-6-4 |
Back at the link listed above is this line that works better -- the cut assumes a certain amount of spaces -- which varies and caused the issue you saw. This line works:
ls -l . | grep '../Library/Frameworks/Python.framework/Versions/2.7' | awk '{print $9}' | xargs rm
hey, I am getting following errors:
mbp-de-user:bin maryam$ ls -l . | grep '../Library/Frameworks/Python.framework/Versions/2.7' | awk '{print $9}' | xargs rm
rm: 2to3-2.7: Permission denied
rm: idle2.7: Permission denied
rm: pydoc2.7: Permission denied
rm: python2.7: Permission denied
rm: python2.7-config: Permission denied
rm: pythonw2.7: Permission denied
rm: smtpd2.7.py: Permission denied
rm: trial: Permission denied
rm: twistd: Permission denied
You need to sudo
Even with sudo I am receiving the same message: permission denied!
this doesn't work :)