[Python] How to install python modules from sources onto a virtual environment

Discussão em 'Python' iniciado por Stack, Abril 8, 2025.

  1. Stack

    Stack Membro Participativo

    As I understand it, you install a module from sources with pip install -e /my_module

    When I do this pip show -f my_module | grep Location gives ~/my_module as the location instead of my virtual environment's site-packages.

    I have my virtual environment activated when I install the module. I've also tried moving my module's folder into my virtual environment's site-packages but it installs it in site-packages/my_module instead of just site-packages.

    I am doing this so that I can edit an existing module to work with my data's shape.

    What is the correct way to install a module from sources onto a virtual environment?

    Continue reading...

Compartilhe esta Página