Tag Archives: ’35; pytorch

File C:\Users\admin\Documents\WindowsPowerShell\profile.ps1 cannot be loaded because running scripts

CONDA activate error

File C:\Users\admin\Documents\WindowsPowerShell\profile.ps1 cannot be loaded because running scripts is disabled on this system.

resolvent

Refer to the answer of stackoverflow
the steps are as follows:

    open the PowerShell in administrator mode. If you don’t know how to open it as an administrator, you can press win + R , then enter shell , and then press Ctrl + shift + Enter . typing

    Set-ExecutionPolicy RemoteSigned
    

This should allow your system to run CONDA scripts. If you want to set it back, type it in the PowerShell administrator mode

Set-ExecutionPolicy Restricted