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
lonelygo
V2EX  ›  Python

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

  •  
  •   lonelygo · 2015-11-16 12:46:01 +08:00 · 3074 次点击
    这是一个创建于 3077 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    8 条回复    2015-11-18 23:37:59 +08:00
    Daniel65536
        1
    Daniel65536  
       2015-11-16 12:57:06 +08:00 via iPhone   ❤️ 1
    pip3 install
    crayygy
        2
    crayygy  
       2015-11-16 13:06:47 +08:00   ❤️ 1
    建议使用 virtualenv
    lonelygo
        3
    lonelygo  
    OP
       2015-11-16 13:55:40 +08:00
    @Daniel65536 好。
    @crayygy 好, brew 安装个看看。
    firemiles
        4
    firemiles  
       2015-11-16 16:21:38 +08:00
    pyenv+virtualenv 插件的方式可能更方便点
    ericls
        5
    ericls  
       2015-11-16 16:24:16 +08:00
    pyvenv-3.5 pyvenv-3.4
    merito
        6
    merito  
       2015-11-16 23:27:05 +08:00
    不用这类版本管理软件的路过
    lonelygo
        7
    lonelygo  
    OP
       2015-11-17 09:50:33 +08:00
    @merito 虚机?自己弄环境变量手动切?
    merito
        8
    merito  
       2015-11-18 23:37:59 +08:00
    @lonelygo 多台电脑,加上虚拟机的完全够用了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5330 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:06 · PVG 17:06 · LAX 02:06 · JFK 05:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.