V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cute
V2EX  ›  macOS

刚用这个系统两天,折腾了一下午终于安装上python2.7了.

  •  
  •   cute · 2012-09-01 23:28:17 +08:00 · 3182 次点击
    这是一个创建于 4276 天前的主题,其中的信息可能已经有所发展或是发生改变。
    官方的python2.7是gcc4.0编译的,但是snow leopard上的gcc的版本是4.2造成无法安装带c的python扩展.
    后来安装了macports安装了好多次都失败,速度好慢,但总算安装上了.
    8 条回复    1970-01-01 08:00:00 +08:00
    eric_q
        1
    eric_q  
       2012-09-02 00:06:42 +08:00
    brew install python :)
    gavingeng
        2
    gavingeng  
       2012-09-02 00:27:07 +08:00
    自带的python就是2.7.2

    /usr/bin/python
    Python 2.7.2 (default, Jun 20 2012, 16:23:33)
    [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    wezzard
        3
    wezzard  
       2012-09-02 00:34:09 +08:00
    为什么用Snow Leopard呢。。。升级到Lion或者Mountain Lion多好。
    goocarlos
        4
    goocarlos  
       2012-09-02 15:01:39 +08:00
    OK,你是又弄了一个,还是覆盖了系统的?
    yoyicue
        5
    yoyicue  
       2012-09-02 15:04:54 +08:00
    你需要 /t/27757
    cute
        6
    cute  
    OP
       2012-09-02 20:35:50 +08:00
    @goocarlos
    我用MacPorts重新安装了。现在可以了。

    @wezzard
    公司的电脑。
    dreampuf
        7
    dreampuf  
       2012-09-02 21:34:13 +08:00   ❤️ 1
    homebrew 比macport小巧多了
    cute
        8
    cute  
    OP
       2012-09-03 10:16:13 +08:00
    @eric_q
    @yoyicue
    @homebrew
    谢谢推荐
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   891 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 21:33 · PVG 05:33 · LAX 14:33 · JFK 17:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.