brew-installed Python not overriding system python

后端 未结 3 1826
生来不讨喜
生来不讨喜 2021-02-01 23:38

I just used brew to install Python 3 on OS X. The python3 command now starts the interpreter using brew Python 3.6, but python still opens the interpr

3条回答
  •  清酒与你
    2021-02-02 00:17

    I tried a few of the proposed solutions in How to link home brew python version and set it as default, but none of them worked. Ultimately I solved this by symlinking python3 --> python:

    ln -s /usr/local/bin/python3 /usr/local/bin/python
    

提交回复
热议问题