Error: After win vscode configures the python environment, the file D:\Pros\virtuals\venvs\Scripts\Activate.ps1 cannot be loaded
Solution:
1. Run powershell as administrator
2. Enter get-ExecutionPolicy and return Restricted, indicating that the status is prohibited
3. Enter set-ExecutionPolicy RemoteSigned, reply Y, and press Enter
Note:
1. If you are not running as an administrator, an error will be reported in step 3, and access is denied.
2. Run as administrator (not unique): run powershell first, enter the command Start-Process powershell -Verb runas