[Python] How to activate virtual environment from Windows 10 command prompt

Discussão em 'Python' iniciado por Stack, Abril 11, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to create and activate a virtual environment, using Windows 10 command prompt. I know that virtualenv is installed correctly, as the command

    virtualenv venv


    Works. I've navigated to my virtualenv download, Downloads\venv\Scripts, and am trying to activate my virtual environment venv. I've tried

    venv activate


    Which doesn't work since Windows doesn't recognize venv as a command. I've also tried

    virtualenv venv activate


    Which also doesn't work since virtualenv is saying that "venv activate" isn't a valid argument.

    Continue reading...

Compartilhe esta Página