V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
shinerene
V2EX  ›  Python

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

  •  
  •   shinerene ·
    Xiechen · 2014-08-17 19:23:20 +08:00 · 4748 次点击
    这是一个创建于 3529 天前的主题,其中的信息可能已经有所发展或是发生改变。
    前两天删除了系统自带的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-08-17 19:43:41 +08:00 via iPad
    怎么修复不大清楚,不过我现在系统自带的是 2.7.5
    shinerene
        2
    shinerene  
    OP
       2014-08-17 19:45:08 +08:00
    @ThinkBad ok 同样感谢额!
    wisatbff
        3
    wisatbff  
       2014-08-17 21:22:01 +08:00
    no zuo no die. 这么多依赖呢。。不能这么直接的
    precisi0nux
        4
    precisi0nux  
       2014-08-17 22:00:23 +08:00
    真心是no zuo no die,以前我也把ubuntu自带的python给替换了,结果怎么弄都弄不好,最后重装了,幸好/home在单独分区,不过也够折腾一阵子了。
    mcfog
        5
    mcfog  
       2014-08-17 22:12:40 +08:00
    Time Machine拯救世界
    abscon
        6
    abscon  
       2014-08-17 22:42:02 +08:00 via Android
    以前用linux时也遇到过这种烦恼,自从用了FreeBSD后就不怕不怕不怕啦 Y(^_^)Y
    imobilespace
        7
    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
        8
    Aloofer  
       2014-08-18 13:08:49 +08:00
    LZ 的 iphoto 应该也打不开了吧,我也是最近作死删了自带的,现在也没弄好。。。
    shinerene
        9
    shinerene  
    OP
       2014-08-18 16:35:40 +08:00
    @wisatbff
    @precisi0nux
    @abscon
    @Aloofer 已经重装了。。no zuo no die 啊
    shinerene
        10
    shinerene  
    OP
       2014-08-18 16:35:56 +08:00
    @imobilespace 试过了。。没用的 已经重装了
    Aloofer
        11
    Aloofer  
       2014-08-18 18:14:21 +08:00
    @shinerene

    天呐!要不要这么恐怖啊,我之前也下了个2.6装上,没用,现在也一直没辙。。
    我当时装了个3.0,心想,那些老版本有什么用哦,都删了去,naive 啊哭了。。
    shinerene
        12
    shinerene  
    OP
       2014-08-18 21:07:12 +08:00
    @Aloofer 血的教训。。。手贱一时爽。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4043 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 05:12 · PVG 13:12 · LAX 22:12 · JFK 01:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.