[Python] VS Code not activating python virtual environments in PowerShell terminal

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

  1. Stack

    Stack Membro Participativo

    When I use 'Run Python File' or 'Python: Create Terminal' with the Python Extension, VS Code states that the virtual environment is activated, but it is clearly not. pip installs go to the global python environment, and the virtual environment's site-packages are not used for imports. I have been trying to use my own PowerShell profile to handle virtual environment activation, but I haven't been able to figure out how to make it automatic.

    Continue reading...

Compartilhe esta Página