1

I have installed python on Mac by Anaconda. Here is the path :

/Users/USERNAME/anaconda3/bin/python
/usr/bin/python

But when I want to install any package that need python, it installs it separately. For instance, I wanted to install the gdb (GNU Debugger) via Homebrew, but it said that python is one of the requirements and then it installed it again.

How can I stop downloading and installing python for every package?

1

The nice thing about homebrew is it only installs dependencies needed to build the packages and also that you don’t have to choose just one version of a tool.

Why not let brew install what it needs, but control your path so that you’re running Anaconda from the python you prefer?

Also, brew has a cask install of anaconda as well, so that might be an easier path to harmony if you can’t get away from the homebrew installs for tools.

| improve this answer | |
  • I mean that is that a convenient way to let the brew install python for each package? – M.Amrollahi May 1 at 15:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .