[Python] How can I tell what directory an imported library comes from in python?

Discussão em 'Python' iniciado por Stack, Agosto 28, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to modify a python library that I downloaded and am using. But the changes I'm making aren't doing anything. So I suspect that python is importing a different copy of this library from somewhere else on the filesystem. So...

    When I run import foolib in python, how can I tell where on the filesystem it's getting that library from?

    Continue reading...

Compartilhe esta Página