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

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