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
Read More:
- VScode Run CONDA environment Error [How to Solve]
- How to Solve pycharm terminal Failed to switch to virtual environment
- [Solved] Error when vscode activates Python virtual environment
- [Solved] NPM install Error: check python checking for Python executable python2 in the PATH
- NPM install Error: gyp ERR! stack Error: Could not find any Python installation to use
- [Solved] gyp verb `which` failed Error: not found: python2
- Flash cli encountered a keyerror “migrate” [How to Solve]
- [Solved] From pip._internal import cmdoptions ImportError: cannot import name SourceDistribution
- [CUDA Environment] Python Pytorch Error: CudaSetupArgument
- [Solved] cv2.error: OpenCV(4.5.3) :-1: error: (-5:Bad argument) in function “pointPolygonTest“
- [Solved] RuntimeError (note: full exception trace is shown but execution is paused at: <module>)
- Linux Fatal Python error: Py_Initialize Unable to get the locale encoding
- httpd Run Error: Job for httpd.service failed because the control process exited with error code.
- Python: How to Solve multiprocessing module Error in Windows
- VScode import numpy Error: DLL load failed [How to Solve]
- [Solved] Django project locally Open Error: importerror: couldn’t import Django
- [Solved] Python Error: An attempt has been made to start a new process before the current process has finished …
- Python Redis: How to batch fuzzy Delete Keys
- [CHM] Python: How to Extract CHM Data
- Python: How to Solve mysqlclient Install Error in Mac