cute
V2EX  ›  macOS

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

  •  
  •   cute · Sep 1, 2012 · 4214 views
    This topic created in 5180 days ago, the information mentioned may be changed or developed.
    官方的python2.7是gcc4.0编译的,但是snow leopard上的gcc的版本是4.2造成无法安装带c的python扩展.
    后来安装了macports安装了好多次都失败,速度好慢,但总算安装上了.
    8 replies  •  1970-01-01 08:00:00 +08:00
    eric_q
    eric_q
    Sep 2, 2012
    1
    brew install python :)
    gavingeng
    gavingeng
    Sep 2, 2012
    2
    自带的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
    wezzard
    Sep 2, 2012
    3
    为什么用Snow Leopard呢。。。升级到Lion或者Mountain Lion多好。
    goocarlos
    goocarlos
    Sep 2, 2012
    4
    OK,你是又弄了一个,还是覆盖了系统的?
    yoyicue
    yoyicue
    Sep 2, 2012
    5
    你需要 /t/27757
    cute
    cute
    OP
    Sep 2, 2012
    6
    @goocarlos
    我用MacPorts重新安装了。现在可以了。

    @wezzard
    公司的电脑。
    dreampuf
    dreampuf
    Sep 2, 2012❤️1
    7
    homebrew 比macport小巧多了
    cute
    cute
    OP
    Sep 3, 2012
    8
    @eric_q
    @yoyicue
    @homebrew
    谢谢推荐
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1505 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 01:12 · PVG 09:12 · LAX 17:12 · JFK 20:12
    ♥ Do have faith in what you're doing.