Virtual enviornment will not activate

I am trying to use powershell to activate a virtual environment.

When I run the command

source env/bin/activate
I get the following error message:
PS C:\Users\Andrew\Desktop\django_projects\django_docs_example\forms> source env/bin/activate
source : The term 'source' is not recognized as the 
name of a cmdlet, function, script file, or operable     
program. Check the spelling of the name, or if a path    
was included, verify that the path is correct and try    
At line:1 char:1
+ source env/bin/activate
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (source:S  
   tring) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException  

So … the article you point to states this. You dont β€œappear” to be on a Mac ??

On a mac, to activate your virtual environment, run the code below:

source env/bin/activate
1 Like