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

多个Python版本怎么管理呢大家?

  •  
  •   huiyubird · Aug 21, 2011 · 7202 views
    This topic created in 5557 days ago, the information mentioned may be changed or developed.
    9 replies  •  1970-01-01 08:00:00 +08:00
    Livid
    Livid
    MOD
    PRO
    Aug 21, 2011
    1
    MacPorts 的话可以 sudo port select python 来选择默认版本。
    huiyubird
    huiyubird
    OP
    Aug 21, 2011
    2
    @Livid 谢谢~
    但是MacPorts是IOS上专用的吧?我在用Ubuntu 11
    fsw90628
    fsw90628
    Aug 21, 2011 via iPod
    3
    virtualenv
    bhuztez
    bhuztez
    Aug 21, 2011
    5
    #!/usr/bin/env python2.x
    #!/usr/bin/env python3.x
    lfeng
    lfeng
    Aug 21, 2011
    6
    virtualenvn+1
    harryxu
    harryxu
    Aug 21, 2011
    7
    virtualenv + virtualenvwrapper
    ratazzi
    ratazzi
    PRO
    Aug 21, 2011
    8
    ubuntu 应该可以用这个方法
    update-alternatives --install /usr/bin/java java /usr/lib/jvm/java/jdk1.6.0_12/bin/java 300
    update-alternatives --config java
    huiyubird
    huiyubird
    OP
    Aug 21, 2011
    9
    谢谢楼上各位
    最终使用了virtualenv,很好的隔离了各个环境,不错

    @imonyse 折腾了一下pythonbrew 每次都switch进行切换,感觉不是很好用
    谢谢:)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1723 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 12:23 · PVG 20:23 · LAX 04:23 · JFK 07:23
    ♥ Do have faith in what you're doing.