shinerene
V2EX  ›  Python

前两天删除了系统自带的 python,今天悲剧了,求解救

By shinerene at 2014 年 8 月 17 日 · 6260 次点击
前两天删除了系统自带的python,今天悲剧了,求解救。
系统是10.9.4 然后今天打不开sublime text2 了 提示如下:

Dyld Error Message:
Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.6/Python
Referenced from: /Volumes/VOLUME/Sublime Text 2.app/Contents/MacOS/Sublime Text 2
Reason: no suitable image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.6/Python: no matching architecture in universal wrapper

开sublime text 3 还是没有问题。。不知道怎么了 是缺少了2.6么 可是去官网下载了2.6.6安装了之后 到最后一步的时候提示 run postflight script for fix system Python 失败

求解救啊。。。
12 条回复  •  2014-08-18 21:07:12 +08:00
ThinkBad
   1
ThinkBad  
   2014 年 8 月 17 日 via iPad
怎么修复不大清楚,不过我现在系统自带的是 2.7.5
shinerene
   2
shinerene  
OP
   2014 年 8 月 17 日
@ThinkBad ok 同样感谢额!
wisatbff
   3
wisatbff  
   2014 年 8 月 17 日
no zuo no die. 这么多依赖呢。。不能这么直接的
precisi0nux
   4
precisi0nux  
   2014 年 8 月 17 日
真心是no zuo no die,以前我也把ubuntu自带的python给替换了,结果怎么弄都弄不好,最后重装了,幸好/home在单独分区,不过也够折腾一阵子了。
mcfog
   5
mcfog  
   2014 年 8 月 17 日
Time Machine拯救世界
abscon
   6
abscon  
   2014 年 8 月 17 日 via Android
以前用linux时也遇到过这种烦恼,自从用了FreeBSD后就不怕不怕不怕啦 Y(^_^)Y
imobilespace
   7
imobilespace  
   2014 年 8 月 18 日
1. 上官网重新下载个 python.dmg 2.6
2. 安装 python.pkg, 默认安装的路径是 /Library/Frameworks/Python.framework/Versions/2.6
3. 拷贝到 /System/Library/Frameworks/Python.framework/Versions/
Aloofer
   8
Aloofer  
   2014 年 8 月 18 日
LZ 的 iphoto 应该也打不开了吧,我也是最近作死删了自带的,现在也没弄好。。。
shinerene
   9
shinerene  
OP
   2014 年 8 月 18 日
@wisatbff
@precisi0nux
@abscon
@Aloofer 已经重装了。。no zuo no die 啊
shinerene
   10
shinerene  
OP
   2014 年 8 月 18 日
@imobilespace 试过了。。没用的 已经重装了
Aloofer
   11
Aloofer  
   2014 年 8 月 18 日
@shinerene

天呐!要不要这么恐怖啊,我之前也下了个2.6装上,没用,现在也一直没辙。。
我当时装了个3.0,心想,那些老版本有什么用哦,都删了去,naive 啊哭了。。
shinerene
   12
shinerene  
OP
   2014 年 8 月 18 日
@Aloofer 血的教训。。。手贱一时爽。。。
推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
© 2026 V2EX · 96ms · 3.9.8.5