python 3.7.1 Windows 10 Powershell
Steps taken:
create folder for envs
change to folder
pip install virtualenv
virtualenv "abc"
abc\Scripts\activate
This throws the error stated in the title. I have tried activate
and activate.ps1
. They both result in the error. activate.bat
doesn't get the error but it doesn't work either.
I have tried running PS as administrator and searched google and stackoverflow. Myself and one other user on stackoverflow seem to be the only two people with this problem.
Details:
Output from activate.ps1:
PS D:\GoogDrive\flask> noc\Scripts\activate.ps1
You must 'source' this script: PS> . noc\Scripts\activate.ps1
PS D:\GoogDrive\flask>
Output from activate.bat:
PS D:\GoogDrive\flask> noc\Scripts\activate.bat
PS D:\GoogDrive\flask>
Also, when I do pip list
, it always shows me all the modules in my base install.
activate
is a shell script for Unix. The correct command for Powershell isabc/Scripts/activate.ps1
. You seem to have misspelledScripts
but then the error message would be different. Can you please edit your question to show exactly what output you get fromabc/Scripts/activate.ps1
?virtualenv
is to separate your environment from system-wide settings and defaults which require privileged access to manipulate.