virtualenv v16.7.2 powershell activate script: “You must 'source' this script: PS> . .\ENV\Scripts\activate” error

后端 未结 4 963
情话喂你
情话喂你 2021-01-04 20:44

The Problem

Newest version of virtualenv (16.7.2) on python v.3.7.4 has 4 additional lines for the "activate.ps1" script, which when run on Windows10 powe

4条回答
  •  灰色年华
    2021-01-04 21:01

    Screenshot attached for reference. I've just encountered the same issue but I did the following:

    1. Create a new virtual environment;

      python -m venv directory

    2. Navigate into the newly created directory;

      cd directory

    3. Activate the virtual environment.

      .\Scripts\activate

    This resolved my problem. I hope it helps...

提交回复
热议问题