Run the script to modify the policy - is allowed to run signed scripts

 

Description: After you create a virtual environment, the environment fails to activate, it says "Could not load file .... ll_env \ Scripts \ Activate.ps1, since the prohibition to run a script on this system."

 

Cause: The default strategy is restricted, not allowed to modify any script that needs to be changed remotesigned, you can run unsigned, or other user signature script; then modify it.

 

1. set-executionpolicy  -scope currentuser

2. Input parameters: remotesigned

 

Check command: get-executionpolicy 

Guess you like

Origin www.cnblogs.com/George19950505/p/12346577.html
run