[Python] Prevent Visual Studio Code from activating the Python virtual environment

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

  1. Stack

    Stack Membro Participativo

    With a Python project opened, whenever I open the integrated terminal in Visual Studio Code it's automatically activating the virtual environment. I'm sure that's done by VS Code because I can find this command in the bash history of that terminal:

    source <project-directory>/venv/bin/activate

    I don't want the virtual environment to be activated. How can we prevent VS Code from doing that?

    Continue reading...

Compartilhe esta Página