推荐学习书目
› 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 · Oct 13, 2017 · 3719 views
    This topic created in 3270 days ago, the information mentioned may be changed or developed.
    很早很早之前用官方的 pkg 装了 Python 3.6。

    前几天装了 homebrew。

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

    装 python 就认了……

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

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

    纯小白胡扯,希望能帮到你
    azurexie
        2
    azurexie  
       Oct 14, 2017
    @mysql 对, 就是 brew link,弄好了记得 set 一下 environment variable。
    mysql
        3
    mysql  
       Oct 14, 2017
    @azurexie 感谢 请问 怎么 set 一下 environment variable。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2622 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 11:42 · PVG 19:42 · LAX 04:42 · JFK 07:42
    ♥ Do have faith in what you're doing.