[Python] Is there a way to automatically load environment variables when activating venv?

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

  1. Stack

    Stack Membro Participativo

    I am using python venv to create virtual environments. But, since I am working with several projects with different virtual environments, I don't want to manualy set environment variables every time I switch to a different project.

    Is there a way to set venv environment variables automatically when activating the venv?

    What is the best practice for this problem?

    Continue reading...

Compartilhe esta Página