Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I am on Mac OS X 10.7.2. I deleted old python library folder before upgrading to newer python. But I found later that I should never delete the factory-shipped python.

The Apple-provided build of Python is installed in /System/Library/Frameworks/Python.framework and /usr/bin/python, respectively. You should never modify or delete these, as they are Apple-controlled and are used by Apple- or third-party software.

Is there a way to restore what I deleted in the folder?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

I guess you may either restore from your Time Machine backup, or copy it back from another Mac running the same 10.7.2

share|improve this answer
while this solves the specific problem for the person that asked the question. The general requirement of another mac running the same version being available (and having a pristine copy) is not a good solution. Apple should have a way to do this. –  Andrew Theken Sep 24 '12 at 11:58
add comment

/Library/Python is empty in a new installation.

share|improve this answer
On Lion, Python 2.7 Library is under /Library/Python I think. –  garbage collection Jan 28 '12 at 20:05
Everything you install via easy_install or pip will go there. The Python standard library is in /System/Library/Frameworks/Python.framework/Versions/Current/lib/python2.7. –  Debilski Jan 29 '12 at 14:28
System relevant data (such as the Python standard library) is almost never stored in /Library/. /Library is for user-installed additional stuff. –  Debilski Jan 29 '12 at 14:33
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.