The file D:\xxx\xxx\xxx\activate.ps1 could not be loaded because running scripts is prohibited on this system

1. Find powershell and run it as an administrator

 

2. Enter: get-ExecutionPolicy on the command line, display: Restricted, indicating that the current state is prohibited

3. Enter at the command line: set-ExecutionPolicy RemoteSigned

4. Enter Y and press Enter

5. Re-open pycharm, no error will be reported

Guess you like

Origin blog.csdn.net/m0_37794269/article/details/125277058