推荐学习书目
› 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
flyingkid
V2EX  ›  Python

mac怎么装两个版本的python

  •  
  •   flyingkid ·
    kennx · Oct 24, 2011 · 7866 views
    This topic created in 5507 days ago, the information mentioned may be changed or developed.
    自带的是2.7.。。很多东西不能用。求方法。
    13 replies  •  1970-01-01 08:00:00 +08:00
    Livid
    Livid
    MOD
    PRO
    Oct 24, 2011 via iPad
    1
    Install 2.6 via MacPorts:

    sudo port install python26
    flyingkid
    flyingkid
    OP
    Oct 24, 2011
    2
    谢谢谢!
    flyingkid
    flyingkid
    OP
    Oct 24, 2011
    3
    @Livid 怎么把2.5设置成默认版本?
    Livid
    Livid
    MOD
    PRO
    Oct 24, 2011
    4
    sudo port select python python25
    ggshiney
    ggshiney
    Oct 24, 2011
    5
    @flyingkid
    sudo port select python python25
    flyingkid
    flyingkid
    OP
    Oct 24, 2011
    6
    @Livid @ggshiney 太感谢了。。。
    bl0ck
    bl0ck
    Oct 24, 2011
    7
    python世界没有rvm类似的吗
    gonbo
    gonbo
    Oct 24, 2011
    8
    virtualenv 这个东西不错。
    flyingkid
    flyingkid
    OP
    Oct 25, 2011
    9
    @Livid 如果我要切会2.7.2要怎么办呢?
    > sudo port select python python27

    我试了没用。*___*
    Livid
    Livid
    MOD
    PRO
    Oct 25, 2011
    10
    @flyingkid sudo port select python python27-apple
    louyp
    louyp
    Nov 8, 2011
    11
    可以在同时安装,使用可以切换,在Google App Launcher的菜单选项preference中要检查一下,如果是Python的路径是“/usr/local/bin/pythonw”,说明是2.6版本,要2.5版本改成“/usr/local/bin/python2.5”。如果要使用Proxy,所以可以在preference改一下。
    可以参考我的文字:
    http://louypblog.appspot.com/2011/11/7/Technology.html
    keakon
    keakon
    Nov 8, 2011
    12
    直接安装多个版本就行了啊:
    keakons-MacBook-Pro:~ keakon$ ls /usr/bin/python*
    /usr/bin/python /usr/bin/python2.7
    /usr/bin/python-config /usr/bin/python2.7-config
    /usr/bin/python2.5 /usr/bin/pythonw
    /usr/bin/python2.5-config /usr/bin/pythonw2.5
    /usr/bin/python2.6 /usr/bin/pythonw2.6
    /usr/bin/python2.6-config /usr/bin/pythonw2.7

    要切换的时候,直接指定版本就行了。
    CMGS
    CMGS
    Nov 8, 2011
    13
    macport。。各种python版本
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2169 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 03:31 · PVG 11:31 · LAX 19:31 · JFK 22:31
    ♥ Do have faith in what you're doing.