while activating virtual environment in python showing this

93 Views Asked by At

ps1 cannot be loaded because running scripts is disabled on this system.

run this command "Set-ExecutionPolicy RemoteSigned"

then showing this

To change the execution policy for the default (LocalMachine) scope, start Windows PowerShell with the "Run as administrator" option. To change the execution policy for the current user, run "Set-ExecutionPolicy -Scope CurrentUser"

1

There are 1 best solutions below

0
Mac Lawson On

So did you run PowerShell as admin?

I don't really understand if you are explaining what you did or the fix.

Try this:

  • Run PowerShell as admin
  • Set-ExecutionPolicy Unrestricted