Fresh Apple M1 install of homebrew and python, need to update path? #476
-
Sorry for the noob question. I just installed homebrew (arm native install) with no issues. I then installed python via "brew install python" (3.9.1) and again no issues. I see the bins are hidden away here: /opt/homebrew/opt/python3/bin Do I simply add this path to my PATH to be able to access them? Just want to double check in case its better to link them or something. Some text during the python install mentioned linking, but Im not clear on if I was a warning or an action. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Are you having trouble using python? If you've added Check If not, check |
Beta Was this translation helpful? Give feedback.
Are you having trouble using python? If you've added
/opt/homebrew/bin
to your path (which seems likely given that you were able to runbrew install python
) you should be good. Homebrew automatically links binaries to$(brew --prefix)/bin
which is/opt/homebrew/bin
on arm macs.Check
which -a python3
to make sure that/opt/homebrew/bin/python3
shows up. If so,python3 -V
should return 3.9.1.If not, check
brew doctor
. If it has a warning saying youpython@3.9
us unlinked, runningbrew link python@3.9
should solve your problem.