pythonsudormfile-organization

Why can I not remove python 2.6 and 2.7 from usr/lib/?


MacBook-Pro:lib me$ sudo rm -rf python2.6 rm: python2.6: Operation not permitted

I tried with sudo, without sudo. Not sure why the operation is not permitted.


Solution

  • It is due to System Integrity Protection, introduced by Apple on OSX versions El Capitan and onwards.