Reputation: 7326
I was following this tutorial for removing older versions/symlinks of Python, so I could use python 3.5, and have it be my default version
The command:
sudo rm -R /System/Library/Frameworks/Python.framework/Versions/2.7
appears to have broken my entire development environment. I started experiencing errors with homebrew
, git
, Xcode
, sublime text 2
, etc. I partially fixed it by re-downloading python 2.7
and running brew doctor && brew prune
However, I still cannot get sublime text 2 to open. I believe I need to restore my /System/Library/Frameworks/Python.framework/Versions/
directory to have 2.7, but I do not know how to do this
I also ran brew install python
as a potential solution but this did not work.
I am by no means an expert in the terminal, but I'm trying to get better. I am often following tutorials like the one I reference to install new software. my questions are as follows:
Upvotes: 4
Views: 1465
Reputation:
You deleted a component of the operating system. Don't do that -- leave /System
alone. (Mac OS X 10.10 and later enforce this by preventing you from modifying that directory at all by default, even with root access.)
There is no supported way to restore this. Back up your data and reinstall the OS.
Upvotes: 2