Search code examples
pythonmacoshomebrew

Assign dependencies python version while brew installing


I want to install autojump via brew install autojump, which need to install [email protected] as dependency. I already have [email protected] installed via brew and don't want an another version.

[email protected] also works with autojump. How can I keep [email protected] around?


Solution

  • Impossible, that's not how Homebrew works.

    Installing autojump with homebrew is basically

    1. Creating a virtual environment with [email protected] (Homebrew always chooses the latest Python)
    2. Install autojump package in that environment.

    Unless you modify the autojump homebrew formula, You can't reuse [email protected].