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-08-21 00:14:47 +08:00 · 5782 次点击
    这是一个创建于 4640 天前的主题,其中的信息可能已经有所发展或是发生改变。
    9 条回复    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
       2011-08-21 00:18:46 +08:00
    MacPorts 的话可以 sudo port select python 来选择默认版本。
    huiyubird
        2
    huiyubird  
    OP
       2011-08-21 00:43:13 +08:00
    @Livid 谢谢~
    但是MacPorts是IOS上专用的吧?我在用Ubuntu 11
    fsw90628
        3
    fsw90628  
       2011-08-21 01:39:47 +08:00 via iPod
    virtualenv
    imonyse
        4
    imonyse  
       2011-08-21 09:59:53 +08:00
    bhuztez
        5
    bhuztez  
       2011-08-21 10:32:46 +08:00
    #!/usr/bin/env python2.x
    #!/usr/bin/env python3.x
    lfeng
        6
    lfeng  
       2011-08-21 12:46:04 +08:00
    virtualenvn+1
    harryxu
        7
    harryxu  
       2011-08-21 13:05:16 +08:00
    virtualenv + virtualenvwrapper
    ratazzi
        8
    ratazzi  
       2011-08-21 13:23:31 +08:00
    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-08-21 14:55:43 +08:00
    谢谢楼上各位
    最终使用了virtualenv,很好的隔离了各个环境,不错

    @imonyse 折腾了一下pythonbrew 每次都switch进行切换,感觉不是很好用
    谢谢:)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2295 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 05:32 · PVG 13:32 · LAX 22:32 · JFK 01:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.