When I try to set up a virtual environment and activate it, the powershell give me a warning –
“You must ‘source’ this script: PS> . …venvs\lpthw\Scripts\activate”
I don’t know what is wrong. I search the Internet but I only found someone met the same problem (still unsolved).
I have already set the script execution policy to ‘unrestricted’. But it doesn’t work.
The other steps are just the same as those in the books.
What it mainly talks about is that when the error “You must ‘source’ this script: PS> . .\scripts\activate” occurs, you can simply solve it by adding '. ’ ahead of the original command (please note it is a full stop and a blank space). I tried and it worked.
I did orginally try it the way you mentioned, however, on PowerShell I could not get it to source with the latest version of virtualenv. I am glad that it seems to have worked for you, however.
No idea why it could not install version 15.1.0, but at least you have now activated the virtual environment.
The mechanism is a bunch of crusty Unix people decided . would mean source and that’s all there is to it. … now has a totally different meaning from . [space] . and it’s historical.