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

2014-08-17 19:23:20 +08:00
 shinerene
前两天删除了系统自带的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 失败

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

天呐!要不要这么恐怖啊,我之前也下了个2.6装上,没用,现在也一直没辙。。
我当时装了个3.0,心想,那些老版本有什么用哦,都删了去,naive 啊哭了。。
shinerene
2014-08-18 21:07:12 +08:00
@Aloofer 血的教训。。。手贱一时爽。。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/128404

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX