{"action":"closed","issue":{"url":"https://api.github.com/repos/mikepurvis/ros-install-osx/issues/11","labels_url":"https://api.github.com/repos/mikepurvis/ros-install-osx/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/mikepurvis/ros-install-osx/issues/11/comments","events_url":"https://api.github.com/repos/mikepurvis/ros-install-osx/issues/11/events","html_url":"https://github.com/mikepurvis/ros-install-osx/issues/11","id":109446462,"number":11,"title":"pip uninstall on El Capitan","user":{"login":"hawesie","id":927289,"avatar_url":"https://avatars.githubusercontent.com/u/927289?v=3","gravatar_id":"","url":"https://api.github.com/users/hawesie","html_url":"https://github.com/hawesie","followers_url":"https://api.github.com/users/hawesie/followers","following_url":"https://api.github.com/users/hawesie/following{/other_user}","gists_url":"https://api.github.com/users/hawesie/gists{/gist_id}","starred_url":"https://api.github.com/users/hawesie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawesie/subscriptions","organizations_url":"https://api.github.com/users/hawesie/orgs","repos_url":"https://api.github.com/users/hawesie/repos","events_url":"https://api.github.com/users/hawesie/events{/privacy}","received_events_url":"https://api.github.com/users/hawesie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-02T08:00:58Z","updated_at":"2015-10-07T19:41:48Z","closed_at":"2015-10-07T19:41:48Z","body":"The command\r\n```pip freeze | xargs sudo pip uninstall -y```\r\nno longer works on El Capitan as the new security layer prevents some files being deleted which pip owns (or thinks it owns). It fails on the first system dependency, which is altgraph on my machine:\r\n\r\n(output, for future googlers)\r\n```\r\nUninstalling altgraph-0.10.2:\r\nException:\r\nTraceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/pip/basecommand.py\", line 211, in main\r\n    status = self.run(options, args)\r\n  File \"/Library/Python/2.7/site-packages/pip/commands/uninstall.py\", line 76, in run\r\n    requirement_set.uninstall(auto_confirm=options.yes)\r\n  File \"/Library/Python/2.7/site-packages/pip/req/req_set.py\", line 305, in uninstall\r\n    req.uninstall(auto_confirm=auto_confirm)\r\n  File \"/Library/Python/2.7/site-packages/pip/req/req_install.py\", line 716, in uninstall\r\n    paths_to_remove.remove(auto_confirm)\r\n  File \"/Library/Python/2.7/site-packages/pip/req/req_uninstall.py\", line 125, in remove\r\n    renames(path, new_path)\r\n  File \"/Library/Python/2.7/site-packages/pip/utils/__init__.py\", line 315, in renames\r\n    shutil.move(old, new)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 299, in move\r\n    copytree(src, real_dst, symlinks=True)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 208, in copytree\r\n    raise Error, errors\r\n```\r\n"}}