[Python] How to install Python packages for brew installed Pythons?

Discussão em 'Python' iniciado por Stack, Fevereiro 21, 2025.

  1. Stack

    Stack Membro Participativo

    I just finished installing the latest stable version of python via Homebrew.

    $ brew install python3


    Everything works fine. I would like to install packages, for example PyMongo. I don't have pip.

    $ pip
    -bash: pip: command not found


    and there is no Homebrew formulae for it:

    $ brew install PyMongo

    brew install PyMongo
    Error: No available formula for pymongo
    Searching formulae...
    Searching taps...


    Any idea what's the best way to install PyMongo on OS X when Python was installed via Homebrew?

    Continue reading...

Compartilhe esta Página