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 Answer 1

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.

3
  • I mean that is that a convenient way to let the brew install python for each package? May 1, 2020 at 15:06
  • Brew will install a python that it will then use for several other packages not a python for each package
    – mmmmmm
    Feb 12, 2021 at 16:17
  • 1
    But it doesn't. It installs a duplicate python that isn't needed, instead of using the one that is already installed.
    – O'Rooney
    Sep 24, 2021 at 4:31

You must log in to answer this question.

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