V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2011 年 8 月 21 日 · 6548 次点击
    这是一个创建于 5273 天前的主题,其中的信息可能已经有所发展或是发生改变。
    9 条回复    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
    PRO
       2011 年 8 月 21 日
    MacPorts 的话可以 sudo port select python 来选择默认版本。
    huiyubird
        2
    huiyubird  
    OP
       2011 年 8 月 21 日
    @Livid 谢谢~
    但是MacPorts是IOS上专用的吧?我在用Ubuntu 11
    fsw90628
        3
    fsw90628  
       2011 年 8 月 21 日 via iPod
    virtualenv
    imonyse
        4
    imonyse  
       2011 年 8 月 21 日
    bhuztez
        5
    bhuztez  
       2011 年 8 月 21 日
    #!/usr/bin/env python2.x
    #!/usr/bin/env python3.x
    lfeng
        6
    lfeng  
       2011 年 8 月 21 日
    virtualenvn+1
    harryxu
        7
    harryxu  
       2011 年 8 月 21 日
    virtualenv + virtualenvwrapper
    ratazzi
        8
    ratazzi  
       2011 年 8 月 21 日
    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
       2011 年 8 月 21 日
    谢谢楼上各位
    最终使用了virtualenv,很好的隔离了各个环境,不错

    @imonyse 折腾了一下pythonbrew 每次都switch进行切换,感觉不是很好用
    谢谢:)
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   3104 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 13:07 · PVG 21:07 · LAX 05:07 · JFK 08:07
    ♥ Do have faith in what you're doing.