One line fix for virtual environment not executing in windows PowerShell (activate file cannot be loaded because running scripts is disabled in this system)
The problem:
Whenever I create a virtual environment and try to activate in my windows machine, it throwed the following error:
It says that “activate file cannot be loaded because running scripts is disabled in this system”
This is because the script as has an undefined Execution Policy
The solution:
In order to fix this, we have to set the execution policy to unrestricted.
Open the PowerShell and execute the following line: