1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] Can't pip install requirements in Python3.12 venv on macOS

Discussão em 'Python' iniciado por Stack, Setembro 28, 2024 às 18:42.

  1. Stack

    Stack Membro Participativo

    Trying to set up a Python3.12 (installed via Homebrew) venv on macOS Sonoma 14.4.1 but completely unable to use pip.

    python3 -m venv .venv
    source .venv/bin/activate
    python3 -m ensurepip
    python3 -m pip install -r requirements.txt


    Always results in "ModuleNotFoundError: No module named 'pip'"

    It's very confusing, I thought pip came with Python already? And the python3 -m ensurepip results in: "Successfully installed pip-24.2". I've tried all combinations of python/python3 pip/pip3. I also tried python3 -m install numpy (just one package) with the same result.

    What am I doing wrong?

    Continue reading...

Compartilhe esta Página