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

如何让 Homebrew 支持我之前自己安装的 Python 3.6?

  •  
  •   freudenthal · 2017-10-13 17:46:37 +08:00 · 2408 次点击
    这是一个创建于 2358 天前的主题,其中的信息可能已经有所发展或是发生改变。
    很早很早之前用官方的 pkg 装了 Python 3.6。

    前几天装了 homebrew。

    用 homebrew 装 opencv,提示需要安装依赖包 python,python3,numpy ……

    装 python 就认了……

    可是作为一个洁癖,有没有什么办法在不卸载掉现在的 python 3.6 的情况下让 homebrew 支持它?

    感恩各位大大
    3 条回复    2017-10-14 10:32:38 +08:00
    mysql
        1
    mysql  
       2017-10-13 17:55:52 +08:00
    brew link python2 好像这样可以让 brew 正常运行, 而且你本机的 py3 也可以留着

    纯小白胡扯,希望能帮到你
    azurexie
        2
    azurexie  
       2017-10-14 06:57:08 +08:00
    @mysql 对, 就是 brew link,弄好了记得 set 一下 environment variable。
    mysql
        3
    mysql  
       2017-10-14 10:32:38 +08:00
    @azurexie 感谢 请问 怎么 set 一下 environment variable。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   974 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:20 · PVG 04:20 · LAX 13:20 · JFK 16:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.