V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
lonelygo
V2EX  ›  Python

Mac 使用 pythonbrew 安装多版本后,模块如何安装?

  •  
  •   lonelygo · Nov 16, 2015 · 3680 views
    This topic created in 3822 days ago, the information mentioned may be changed or developed.

    小白问题请指点。
    Mac 下使用 pythonbrew 装了 3.4.3 ,但是 pip install 的模块都默认在系统 2.7 版本的 /Library/Python/2.7/site-packages/路径下。
    pythonbrew switch 后,环境是变了, 但是如何使用 2.7 下面的包呢?

    8 replies    2015-11-18 23:37:59 +08:00
    Daniel65536
        1
    Daniel65536  
       Nov 16, 2015 via iPhone   ❤️ 1
    pip3 install
    crayygy
        2
    crayygy  
       Nov 16, 2015   ❤️ 1
    建议使用 virtualenv
    lonelygo
        3
    lonelygo  
    OP
       Nov 16, 2015
    @Daniel65536 好。
    @crayygy 好, brew 安装个看看。
    firemiles
        4
    firemiles  
       Nov 16, 2015
    pyenv+virtualenv 插件的方式可能更方便点
    ericls
        5
    ericls  
       Nov 16, 2015
    pyvenv-3.5 pyvenv-3.4
    merito
        6
    merito  
       Nov 16, 2015
    不用这类版本管理软件的路过
    lonelygo
        7
    lonelygo  
    OP
       Nov 17, 2015
    @merito 虚机?自己弄环境变量手动切?
    merito
        8
    merito  
       Nov 18, 2015
    @lonelygo 多台电脑,加上虚拟机的完全够用了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   757 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 21:02 · PVG 05:02 · LAX 14:02 · JFK 17:02
    ♥ Do have faith in what you're doing.