[Python] How to debug / develop my own Python package

Discussão em 'Python' iniciado por Stack, Maio 15, 2025.

  1. Stack

    Stack Membro Participativo

    I've developed a Python package, which I distribute to colleagues as a tar file, and they can pip install it. All good so far.

    However, I want to modify the code, add some new features, etc. When I try to do this in VSCode, it runs & debugs the the installed version in site-packages, rather than the modified version in my source directory.

    As a workaround, I just pip install again with the slightly modified version and this works, but it seems like overkill. Is there a simple way to say - use these local files rather than the version in site-packages?

    Continue reading...

Compartilhe esta Página